-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
关于xlog在win上的运用问题 #492
Comments
已知问题 稍后我 fix 下 |
nice |
占用内存会变大,而且你无法预知你的 log 文件将会是多大,除非你不停的去映射文件。当无法预知被映射的文件大小时,操作 mmap 将会是个麻烦的事情 |
嗯嗯了解了,多谢。 |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
通过调试xlog的win版本,发现有个问题
使用createFileMapping创建map2文件后,此时的map2处于open状态
同时会对该文件上调用fopen操作(在mmap_util.cc中)
在ios上map2进行fopen是正常,并进行初始化文件内容
而win上会fopen失败,导致把map2文件删除,导致后面整个log的写入,和map2文件是毫无关系
这个是就这样设计还是bug来着?
The text was updated successfully, but these errors were encountered: