From cc4d227a112a2e39ac0f84462783c7c3c622cb64 Mon Sep 17 00:00:00 2001 From: Neil Cook Date: Mon, 9 Dec 2024 11:08:32 +0000 Subject: [PATCH] wforce: Set default map size for sharded DBs to be the same as non-sharded --- wforce/twmap-wrapper.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wforce/twmap-wrapper.cc b/wforce/twmap-wrapper.cc index ff2ac413..c2fd7c04 100644 --- a/wforce/twmap-wrapper.cc +++ b/wforce/twmap-wrapper.cc @@ -29,7 +29,9 @@ TWStringStatsDBWrapper::TWStringStatsDBWrapper(const std::string& name, int w_si { sdbvp = std::make_shared>>>(); for (int i=0; ipush_back(std::make_shared>(name, w_size, n_windows)); + auto s = std::make_shared>(name, w_size, n_windows); + s->set_map_size_soft(ctwstats_map_size_soft/n_shards); + sdbvp->push_back(s); } replicated = std::make_shared(false); }