Added const to RocksDBKeyValueStore methods to support new IKeyValueStore interface

This commit is contained in:
sfc-gh-tclinkenbeard 2020-06-17 16:56:31 -07:00
parent 77e3b314f6
commit d32e97e4c4
1 changed files with 2 additions and 4 deletions

View File

@ -346,9 +346,7 @@ struct RocksDBKeyValueStore : IKeyValueStore {
doClose(this, false);
}
KeyValueStoreType getType() override {
return KeyValueStoreType(KeyValueStoreType::SSD_ROCKSDB_V1);
}
KeyValueStoreType getType() const override { return KeyValueStoreType(KeyValueStoreType::SSD_ROCKSDB_V1); }
Future<Void> init() override {
std::unique_ptr<Writer::OpenAction> a(new Writer::OpenAction());
@ -406,7 +404,7 @@ struct RocksDBKeyValueStore : IKeyValueStore {
return res;
}
StorageBytes getStorageBytes() override {
StorageBytes getStorageBytes() const override {
int64_t free;
int64_t total;