mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
RedisModuleEvent_LoadingProgress always at 100% progress (#7685)
It was also using the wrong struct, but luckily RedisModuleFlushInfo and RedisModuleLoadingProgress are identical.
This commit is contained in:
parent
65c24bd3d4
commit
a3d4d7bf68
@ -7264,8 +7264,8 @@ void processModuleLoadingProgressEvent(int is_aof) {
|
||||
/* Fire the loading progress modules end event. */
|
||||
int progress = -1;
|
||||
if (server.loading_total_bytes)
|
||||
progress = (server.loading_total_bytes<<10) / server.loading_total_bytes;
|
||||
RedisModuleFlushInfoV1 fi = {REDISMODULE_LOADING_PROGRESS_VERSION,
|
||||
progress = (server.loading_loaded_bytes<<10) / server.loading_total_bytes;
|
||||
RedisModuleLoadingProgressV1 fi = {REDISMODULE_LOADING_PROGRESS_VERSION,
|
||||
server.hz,
|
||||
progress};
|
||||
moduleFireServerEvent(REDISMODULE_EVENT_LOADING_PROGRESS,
|
||||
|
Loading…
Reference in New Issue
Block a user