diff options
author | yoav-steinberg <yoav@monfort.co.il> | 2022-02-21 09:37:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-21 09:37:25 +0200 |
commit | b59bb9b476cbcc9ed321dc5172be3ba2e0738142 (patch) | |
tree | 38212dda044b8627649f97bbcda06cb2bf8bea51 /src/defrag.c | |
parent | b2d393b9902fd159878a2f94632853db52e220b8 (diff) | |
download | redis-b59bb9b476cbcc9ed321dc5172be3ba2e0738142.tar.gz |
Fix script active defrag test (#10318)
This includes two fixes:
* We forgot to count non-key reallocs in defragmentation stats.
* Fix the script defrag tests so to make dict entries less signigicant in fragmentation by making the scripts larger.
This assures active defrage will complete and reach desired results.
Some inherent fragmentation might exists in dict entries which we need to ignore.
This lead to occasional CI failures.
Diffstat (limited to 'src/defrag.c')
-rw-r--r-- | src/defrag.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/defrag.c b/src/defrag.c index b0ae487f3..d4983c6d5 100644 --- a/src/defrag.c +++ b/src/defrag.c @@ -1156,7 +1156,7 @@ void activeDefragCycle(void) { /* Move on to next database, and stop if we reached the last one. */ if (++current_db >= server.dbnum) { /* defrag other items not part of the db / keys */ - defragOtherGlobals(); + server.stat_active_defrag_hits += defragOtherGlobals(); long long now = ustime(); size_t frag_bytes; |