From 86d369a75adf4b4e49b9b9a9558931a3beb7240b Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 31 Oct 2013 09:14:24 +0800 Subject: [PATCH] fixed bug because of leveldb's change --- cmd/serve.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/serve.go b/cmd/serve.go index 39d924cb7..3172700d7 100644 --- a/cmd/serve.go +++ b/cmd/serve.go @@ -438,7 +438,7 @@ func startService(listen, port string) error { dbDir = strings.Replace(dbDir, "~", homeDir, -1) - db, err = leveldb.OpenFile(dbDir, &opt.Options{Flag: opt.OFCreateIfMissing}) + db, err = leveldb.OpenFile(dbDir, nil) if err != nil { return err }