Add a warning if attempting to use RocksDB without it built

This commit is contained in:
Daniel Smith 2020-06-03 21:02:09 +00:00
parent 4b402b213a
commit 455cb41283
1 changed files with 1 additions and 0 deletions

View File

@ -396,6 +396,7 @@ IKeyValueStore* keyValueStoreRocksDB(std::string const& path, UID logID, KeyValu
#ifdef SSD_ROCKSDB_EXPERIMENTAL
return new RocksDBKeyValueStore(path, logID);
#else
TraceEvent(SevError, "RocksDBEngineInitFailure").detail("Reason", "Built without RocksDB");
return keyValueStoreSQLite(path, logID, storeType, checkChecksums, checkIntegrity);
#endif // SSD_ROCKSDB_EXPERIMENTAL
}