Skip to content

Commit 69ea863

Browse files
karelrootedgit-hulk
authored andcommitted
FIX: disable compaction_checker_range when value is empty string
1 parent 7e215fa commit 69ea863

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/config.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,11 @@ void Config::initFieldValidator() {
151151
}},
152152
{"compaction-checker-range", [this](const std::string& k, const std::string& v)->Status {
153153
std::vector<std::string> args;
154+
if (v.empty()) {
155+
compaction_checker_range.Start = -1;
156+
compaction_checker_range.Stop = -1;
157+
return Status::OK();
158+
}
154159
Util::Split(v, "-", &args);
155160
if (args.size() != 2) {
156161
return Status(Status::NotOK, "invalid range format, the range should be between 0 and 24");

0 commit comments

Comments
 (0)