Commit 08ff852
committed
Defrag should only skip non-existent dbs, not empty dbs
In valkey-io#1609, we now doing on-demand database allocation instead
of preallocation. And in beginDefragCycle, we should not skip
empty databases if they exist. The defrag still defrags the
internal allocations of the hashtables structs if they exist.
Call chain: defragStageDbKeys -> defragStageKvstoreHelper ->
kvstoreHashtableDefragTables -> hashtableDefragTables.
Signed-off-by: Binbin <[email protected]>1 parent a739531 commit 08ff852
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
941 | 941 | | |
942 | 942 | | |
943 | 943 | | |
| 944 | + | |
944 | 945 | | |
945 | 946 | | |
946 | 947 | | |
| |||
959 | 960 | | |
960 | 961 | | |
961 | 962 | | |
| 963 | + | |
962 | 964 | | |
963 | 965 | | |
964 | 966 | | |
| |||
1227 | 1229 | | |
1228 | 1230 | | |
1229 | 1231 | | |
1230 | | - | |
1231 | 1232 | | |
1232 | 1233 | | |
1233 | 1234 | | |
| |||
0 commit comments