Skip to content

Commit

Permalink
fix: start program without conf (#287)
Browse files Browse the repository at this point in the history
Co-authored-by: shenmengju <[email protected]>
  • Loading branch information
hahahashen and hahahashen authored Apr 17, 2024
1 parent 53125c8 commit 93be1c1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pikiwidb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,11 @@ int main(int ac, char* av[]) {
std::cerr << "Load config file [" << g_pikiwidb->GetConfigName() << "] failed!\n";
return -1;
}
} else {
pikiwidb::g_config.fast_cmd_threads_num = int(1);
pikiwidb::g_config.slow_cmd_threads_num = int(1);
pikiwidb::g_config.worker_threads_num = int(2);
pikiwidb::g_config.slave_threads_num = int(2);
}

// output logo to console
Expand Down

0 comments on commit 93be1c1

Please sign in to comment.