// vim: ts=8 sw=2 smarttab
#include "KeyValueDB.h"
-#ifdef WITH_LEVELDB
-#include "LevelDBStore.h"
-#endif
#include "MemDB.h"
#include "RocksDBStore.h"
map<string,string> options,
void *p)
{
-#ifdef WITH_LEVELDB
- if (type == "leveldb") {
- return new LevelDBStore(cct, dir);
- }
-#endif
if (type == "rocksdb") {
return new RocksDBStore(cct, dir, options, p);
}
int KeyValueDB::test_init(const string& type, const string& dir)
{
-#ifdef WITH_LEVELDB
- if (type == "leveldb") {
- return LevelDBStore::_test_init(dir);
- }
-#endif
if (type == "rocksdb") {
return RocksDBStore::_test_init(dir);
}