This is an automated email from the ASF dual-hosted git repository.

maplefu pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/kvrocks.git


The following commit(s) were added to refs/heads/unstable by this push:
     new a7381220 feat(config): Minor update comment for 
compression_start_level error code (#2615)
a7381220 is described below

commit a73812201b4131713253816380400df97ce4df94
Author: mwish <[email protected]>
AuthorDate: Tue Oct 22 16:00:18 2024 +0800

    feat(config): Minor update comment for compression_start_level error code 
(#2615)
---
 src/config/config.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/config/config.cc b/src/config/config.cc
index ce523982..57b2c7b0 100644
--- a/src/config/config.cc
+++ b/src/config/config.cc
@@ -120,7 +120,7 @@ Status SetRocksdbCompression(Server *srv, const 
rocksdb::CompressionType compres
   }
 
   if (compression_start_level >= KVROCKS_MAX_LSM_LEVEL) {
-    return {Status::NotOK, "compression_start_level must <= rocksdb levels 
count"};
+    return {Status::NotOK, "compression_start_level must be < " + 
std::to_string(KVROCKS_MAX_LSM_LEVEL)};
   }
   std::vector<std::string> compression_per_level_builder;
   compression_per_level_builder.reserve(KVROCKS_MAX_LSM_LEVEL);

Reply via email to