Skip to content

Commit

Permalink
fix iwyu
Browse files Browse the repository at this point in the history
  • Loading branch information
ruojieranyishen committed Aug 9, 2023
1 parent 31886f1 commit 4a17c4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/server/pegasus_server_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2668,10 +2668,7 @@ void pegasus_server_impl::set_rocksdb_options_before_creating(
}

const auto &setter = cf_opts_setters.find(option);
if (setter == cf_opts_setters.end()) {
LOG_WARNING("cannot find {} setter function, and set this option fail.", option);
continue;
}
CHECK_TRUE(setter != cf_opts_setters.end());
if (setter->second(find->second, _data_cf_opts)) {
LOG_INFO_PREFIX("Set {} \"{}\" succeed", find->first, find->second);
}
Expand All @@ -2684,10 +2681,7 @@ void pegasus_server_impl::set_rocksdb_options_before_creating(
}

const auto &setter = cf_opts_setters.find(option);
if (setter == cf_opts_setters.end()) {
LOG_WARNING("cannot find {} setter function, and set this option fail.", option);
continue;
}
CHECK_TRUE(setter != cf_opts_setters.end());
if (setter->second(find->second, _data_cf_opts)) {
LOG_INFO_PREFIX("Set {} \"{}\" succeed", find->first, find->second);
}
Expand Down
1 change: 1 addition & 0 deletions src/utils/simple_logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
#include "utils/filesystem.h"
#include "utils/flags.h"
#include "utils/fmt_logging.h"
#include "utils/ports.h"
#include "utils/process_utils.h"
#include "utils/strings.h"
#include "utils/time_utils.h"
Expand Down

0 comments on commit 4a17c4d

Please sign in to comment.