Update ldb/dbtest to latest goleveldb API.

This commit is contained in:
Dave Collins 2014-01-18 21:06:10 -06:00
parent 6578e7345f
commit 0696c757fa

View file

@ -25,8 +25,9 @@ func main() {
ro := &opt.ReadOptions{}
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 {
fmt.Printf("db open failed %v\n", err)
return