You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kvrocks.apache.org by sh...@apache.org on 2022/09/23 05:46:41 UTC
[incubator-kvrocks] branch unstable updated: Fix config set rocksdb.blob_garbage_collection_age_cutoff (#914)
This is an automated email from the ASF dual-hosted git repository.
shang pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/incubator-kvrocks.git
The following commit(s) were added to refs/heads/unstable by this push:
new 2c88a86 Fix config set rocksdb.blob_garbage_collection_age_cutoff (#914)
2c88a86 is described below
commit 2c88a86205b2c52ec445e972b485ecd4f42e2b5e
Author: XiongDa <52...@users.noreply.github.com>
AuthorDate: Fri Sep 23 13:46:35 2022 +0800
Fix config set rocksdb.blob_garbage_collection_age_cutoff (#914)
---
src/config.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/config.cc b/src/config.cc
index a98fdf4..ea72084 100644
--- a/src/config.cc
+++ b/src/config.cc
@@ -483,7 +483,7 @@ void Config::initFieldCallback() {
return Status(Status::NotOK, "blob_garbage_collection_age_cutoff must >= 0 and <= 100.");
}
- double cutoff = val / 100;
+ double cutoff = val / 100.0;
return srv->storage_->SetColumnFamilyOption(trimRocksDBPrefix(k), std::to_string(cutoff));
}},
{"rocksdb.level_compaction_dynamic_level_bytes", [](Server* srv, const std::string &k,