Update ldb/dbtest to latest goleveldb API.
This commit is contained in:
parent
6578e7345f
commit
0696c757fa
1 changed files with 2 additions and 1 deletions
|
@ -25,8 +25,9 @@ func main() {
|
||||||
|
|
||||||
ro := &opt.ReadOptions{}
|
ro := &opt.ReadOptions{}
|
||||||
wo := &opt.WriteOptions{}
|
wo := &opt.WriteOptions{}
|
||||||
|
opts := &opt.Options{}
|
||||||
|
|
||||||
ldb, err := leveldb.OpenFile("dbfile", &opt.Options{Flag: opt.OFCreateIfMissing})
|
ldb, err := leveldb.OpenFile("dbfile", opts)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Printf("db open failed %v\n", err)
|
fmt.Printf("db open failed %v\n", err)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue