Add const qualifiers in KeyValueStoreRocksDB.actor.cpp

This commit is contained in:
sfc-gh-tclinkenbeard 2021-10-17 21:10:31 -07:00 committed by A.J. Beamon
parent 9e06b6e6e3
commit 421dee532c
1 changed files with 2 additions and 2 deletions

View File

@ -581,7 +581,7 @@ struct RocksDBKeyValueStore : IKeyValueStore {
}
}
Future<Void> getError() override { return errorPromise.getFuture(); }
Future<Void> getError() const override { return errorPromise.getFuture(); }
ACTOR static void doClose(RocksDBKeyValueStore* self, bool deleteOnClose) {
// The metrics future retains a reference to the DB, so stop it before we delete it.
@ -600,7 +600,7 @@ struct RocksDBKeyValueStore : IKeyValueStore {
delete self;
}
Future<Void> onClosed() override { return closePromise.getFuture(); }
Future<Void> onClosed() const override { return closePromise.getFuture(); }
void dispose() override { doClose(this, true); }