Skip to content

Commit

Permalink
wforce: Set default map size for sharded DBs to be the same as non-sh…
Browse files Browse the repository at this point in the history
…arded
  • Loading branch information
neilcook committed Dec 9, 2024
1 parent f7954f0 commit cc4d227
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wforce/twmap-wrapper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ TWStringStatsDBWrapper::TWStringStatsDBWrapper(const std::string& name, int w_si
{
sdbvp = std::make_shared<std::vector<std::shared_ptr<TWStatsDB<std::string>>>>();
for (int i=0; i<num_shards; ++i) {
sdbvp->push_back(std::make_shared<TWStatsDB<std::string>>(name, w_size, n_windows));
auto s = std::make_shared<TWStatsDB<std::string>>(name, w_size, n_windows);
s->set_map_size_soft(ctwstats_map_size_soft/n_shards);
sdbvp->push_back(s);
}
replicated = std::make_shared<bool>(false);
}
Expand Down

0 comments on commit cc4d227

Please sign in to comment.