mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 18:35:46 +02:00
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:
parent
3cdc8fa128
commit
bdc578acef
3 changed files with 6 additions and 7 deletions
|
@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue