chakra-coder / leveldb-go

Automatically exported from code.google.com/p/leveldb-go
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

db.Close does not flush log file #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
>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 vladimir...@gmail.com on 12 Mar 2014 at 2:40

GoogleCodeExporter commented 9 years ago
Example code illustrating the issue. Tested on OS X 10.9.2 and Ubuntu.

Original comment by dvd...@gmail.com on 12 Mar 2014 at 3:20

Attachments: