Ryan4253 commented on code in PR #3034:
URL: https://github.com/apache/kvrocks/pull/3034#discussion_r2166724100


##########
src/config/config.cc:
##########
@@ -720,6 +720,15 @@ void Config::initFieldCallback() {
          }
          return 
srv->storage->SetOptionForAllColumnFamilies(TrimRocksDbPrefix(k), v);
        }},
+      {"rocksdb.level0_slowdown_writes_trigger",
+       [this]([[maybe_unused]] Server *srv, [[maybe_unused]] const std::string 
&k,
+              [[maybe_unused]] const std::string &v) -> Status {
+         if (rocks_db.level0_slowdown_writes_trigger == 0) {
+           rocks_db.level0_slowdown_writes_trigger = 
rocks_db.level0_stop_writes_trigger;
+         }
+
+         return Status::OK();

Review Comment:
   Oh this made me notice I completely misunderstood how the config callbacks 
work, will come back with a fix



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to