PragmaTwice commented on code in PR #3034:
URL: https://github.com/apache/kvrocks/pull/3034#discussion_r2162837548
##########
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:
```suggestion
if (rocks_db.level0_slowdown_writes_trigger == 0) {
rocks_db.level0_slowdown_writes_trigger =
rocks_db.level0_stop_writes_trigger;
}
return set_cf_option_cb(srv, k, v);
```
--
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]