mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
fflush VM swap file after object swapping
This commit is contained in:
parent
87eaf97f14
commit
0841cc928d
1
redis.c
1
redis.c
@ -6943,6 +6943,7 @@ static int vmSwapObject(robj *key, robj *val) {
|
|||||||
(unsigned long long) page, (unsigned long long) pages);
|
(unsigned long long) page, (unsigned long long) pages);
|
||||||
server.vm_stats_swapped_objects++;
|
server.vm_stats_swapped_objects++;
|
||||||
server.vm_stats_swapouts++;
|
server.vm_stats_swapouts++;
|
||||||
|
fflush(server.vm_fp);
|
||||||
return REDIS_OK;
|
return REDIS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user