Fix set_option_empty.

This commit is contained in:
levlam 2023-01-17 13:55:51 +03:00
parent 4408af6643
commit 02a4851e12

View File

@ -198,7 +198,7 @@ void OptionManager::set_option(Slice name, Slice value) {
CHECK(!name.empty());
CHECK(Scheduler::instance()->sched_id() == current_scheduler_id_);
if (value.empty()) {
if (option_pmc_->erase(name.str()) == 0) {
if (options_->erase(name.str()) == 0) {
return;
}
option_pmc_->erase(name.str());