Skip to content
This repository has been archived by the owner on Jul 30, 2022. It is now read-only.

db.Close does not flush log file #13

Open
GoogleCodeExporter opened this issue Jul 20, 2015 · 1 comment
Open

db.Close does not flush log file #13

GoogleCodeExporter opened this issue Jul 20, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

>What steps will reproduce the problem?
- Create new db
- Write big chunk of data (>32kb in my case)
- Close db
- Reopen db

>What is the expected output? What do you see instead?
leveldb: corrupt log file "/tmp/dontcorruptme/000003.log"

>Notes
db.WriteOptions{Sync: true} fixes the issue.

Original issue reported on code.google.com by [email protected] on 12 Mar 2014 at 2:40

@GoogleCodeExporter
Copy link
Author

Example code illustrating the issue. Tested on OS X 10.9.2 and Ubuntu.

Original comment by [email protected] on 12 Mar 2014 at 3:20

Attachments:

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

No branches or pull requests

1 participant