Skip to content

Commit

Permalink
fix by review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
wangshaoyi committed Feb 27, 2024
1 parent 931508b commit 427c08b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/pika_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -735,8 +735,8 @@ class PikaConf : public pstd::BaseConf {
int max_cache_statistic_keys_ = 0;
int small_compaction_threshold_ = 0;
int small_compaction_duration_threshold_ = 0;
int max_background_flushes_ = 0;
int max_background_compactions_ = 0;
int max_background_flushes_ = 1;
int max_background_compactions_ = 2;
int max_background_jobs_ = 0;
int max_cache_files_ = 0;
std::atomic<uint64_t> rocksdb_ttl_second_ = 0;
Expand Down
2 changes: 0 additions & 2 deletions src/pika_conf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,6 @@ int PikaConf::Load() {
small_compaction_duration_threshold_ = 1000000;
}

max_background_flushes_ = 1;
GetConfInt("max-background-flushes", &max_background_flushes_);
if (max_background_flushes_ <= 0) {
max_background_flushes_ = 1;
Expand All @@ -370,7 +369,6 @@ int PikaConf::Load() {
max_background_flushes_ = 6;
}

max_background_compactions_ = 2;
GetConfInt("max-background-compactions", &max_background_compactions_);
if (max_background_compactions_ <= 0) {
max_background_compactions_ = 2;
Expand Down

0 comments on commit 427c08b

Please sign in to comment.