leveldb icon indicating copy to clipboard operation
leveldb copied to clipboard

Fails when trying to Open a new database

Open GoogleCodeExporter opened this issue 10 years ago • 1 comments

To reproduce:

1. leveldb.db.Open a directory that doesn't exist
2. You will get the following error: "DB Error: leveldb: could not open CURRENT 
file for DB <your directory>: open <your directory>/CURRENT: no such file or 
directory"

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?
The current version (I just did a `go get`) on Ubuntu 12.10

Original issue reported on code.google.com by [email protected] on 8 May 2013 at 2:30

GoogleCodeExporter avatar Jul 20 '15 04:07 GoogleCodeExporter

Yeah, the top-level leveldb package is incomplete (this is issue #4). There is 
an existing TODO to implement Options.CreateIfMissing.

Original comment by [email protected] on 8 May 2013 at 4:18

GoogleCodeExporter avatar Jul 20 '15 04:07 GoogleCodeExporter