diff --git a/.gitignore b/.gitignore index a3c4eb3cc10..63b9e51e0dd 100644 --- a/.gitignore +++ b/.gitignore @@ -45,3 +45,4 @@ make_config.mk .vscode kvrocks2redis build +.cache \ No newline at end of file diff --git a/src/config.cc b/src/config.cc index cdd4f1fb410..d2515572279 100644 --- a/src/config.cc +++ b/src/config.cc @@ -440,7 +440,7 @@ void Config::initFieldCallback() { double cutoff = val / 100; return srv->storage_->SetColumnFamilyOption(trimRocksDBPrefix(k), std::to_string(cutoff)); }}, - {"rocksdb.level_compaction_dynamic_level_bytes", [this](Server* srv, const std::string &k, + {"rocksdb.level_compaction_dynamic_level_bytes", [](Server* srv, const std::string &k, const std::string& v)->Status { if (!srv) return Status::OK(); std::string level_compaction_dynamic_level_bytes = v == "yes" ? "true" : "false"; diff --git a/src/redis_zset.cc b/src/redis_zset.cc index c7803a2935a..4e87aa6ccde 100644 --- a/src/redis_zset.cc +++ b/src/redis_zset.cc @@ -60,7 +60,7 @@ rocksdb::Status ZSet::Add(const Slice &user_key, uint8_t flags, std::vector &elems); diff --git a/tests/t_list_test.cc b/tests/t_list_test.cc index 7a5a2e903a5..c43efe29f79 100644 --- a/tests/t_list_test.cc +++ b/tests/t_list_test.cc @@ -61,7 +61,7 @@ class RedisListLMoveTest : public RedisListTest { dst_fields_ = {"dst", "dst2", "dst3", "dst4"}; } - void TearDown() { + void TearDown() override { list->Del(key_); list->Del(dst_key_); }