chore: limit number of descriptors in the exec map (#3688)

For some cases, this map can grow indefinitely.
This change makes it less detailed by makes sure that number of possible keys is bounded.
Still it can provide a good summary of nature of exec transactions.

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
Roman Gershman 2024-09-10 10:50:30 +03:00 committed by GitHub
parent 3cdc8fa128
commit bdc578acef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 7 deletions

View file

@ -2019,8 +2019,7 @@ void ServerFamily::ResetStat(Namespace* ns) {
tl_facade_stats->reply_stats.send_stats = {};
tl_facade_stats->reply_stats.script_error_count = 0;
tl_facade_stats->reply_stats.err_count.clear();
service_.mutable_registry()->ResetCallStats(index);
ServerState::tlocal()->exec_freq_count.clear();
});
}