Finish modular backend

This commit is contained in:
JoelKatz
2013-07-10 14:06:12 -07:00
committed by Vinnie Falco
parent 3c53253f2d
commit 5804c61bfb
2 changed files with 3 additions and 6 deletions

View File

@@ -19,7 +19,7 @@ public:
options.filter_policy = leveldb::NewBloomFilterPolicy (10);
leveldb::Status status = leveldb::DB::Open (options, path, &mDB);
if (!status.ok () || mDB)
if (!status.ok () || !mDB)
throw (std::runtime_error (std::string("Unable to open/create leveldb: ") + status.ToString()));
}