Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

索引文件没有定时force, LogIndex类的close()方法也没有被调用 #6

Open
GoogleCodeExporter opened this issue Apr 1, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

    索引文件没有定时通过force()方法强行写入硬盘, LogIndex类的close()方法也没有被调用, 进程被kill或断电应该会造成索引文件记录读写位置和数据文件的记录不一致.

    请问sunli关于索引文件和数据文件一致性的问题你是如果考虑的.

Original issue reported on code.google.com by kangtsai...@gmail.com on 8 Jun 2012 at 9:40

@GoogleCodeExporter
Copy link
Author

这是一个bug.。在开源的时候,这块代码给弄丢了。
在一致性上,index和 
数据之间的确会有有问题。目前的处理仅仅是先写数据,再��
�db。
所以kill进程基本上不会有问题,在操作系统crash、断电的时��
�容易出现不一致的问题。
当初考虑过通过log的方式来解决,但是为了尽量追求性能,��
�以抛弃了这块的一致性。


Original comment by sunli1...@gmail.com on 27 Jun 2012 at 6:13

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

感谢sunli的回答。

Original comment by kangtsai...@gmail.com on 7 Jul 2012 at 3:49

  • Added labels: ****
  • Removed labels: ****

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant