diff --git a/db/pre_release_callback.h b/db/pre_release_callback.h index b3e658577..0cee4d547 100644 --- a/db/pre_release_callback.h +++ b/db/pre_release_callback.h @@ -26,7 +26,7 @@ class PreReleaseCallback { // released. // is_mem_disabled is currently used for debugging purposes to assert that // the callback is done from the right write queue. - virtual Status Callback(SequenceNumber seq, const bool is_mem_disabled) = 0; + virtual Status Callback(SequenceNumber seq, bool is_mem_disabled) = 0; }; } // namespace rocksdb diff --git a/db/write_callback_test.cc b/db/write_callback_test.cc index c91a4305c..a1b7f6541 100644 --- a/db/write_callback_test.cc +++ b/db/write_callback_test.cc @@ -295,7 +295,7 @@ TEST_F(WriteCallbackTest, WriteWithCallbackTest) { PublishSeqCallback(DBImpl* db_impl_in) : db_impl_(db_impl_in) {} virtual Status Callback(SequenceNumber last_seq, - const bool /*not used*/) override { + bool /*not used*/) override { db_impl_->SetLastPublishedSequence(last_seq); return Status::OK(); }