mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Finish modular backend
This commit is contained in:
@@ -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()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user