Skip to content

Commit

Permalink
Fix compile warning.
Browse files Browse the repository at this point in the history
Signed-off-by: wuranxx <[email protected]>
  • Loading branch information
wuranxx committed Jan 22, 2025
1 parent e138b7e commit da2ab1a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/cluster_legacy.c
Original file line number Diff line number Diff line change
Expand Up @@ -6354,7 +6354,11 @@ unsigned int delKeysInSlot(unsigned int hashslot, int lazy) {
enterExecutionUnit(1, 0);
sds sdskey = objectGetKey(valkey);
robj *key = createStringObject(sdskey, sdslen(sdskey));
int deleted = lazy ? dbAsyncDelete(&server.db[0], key) : dbSyncDelete(&server.db[0], key);
if (lazy) {
dbAsyncDelete(&server.db[0], key);
} else {
dbSyncDelete(&server.db[0], key);
}
propagateDeletion(&server.db[0], key, lazy);
signalModifiedKey(NULL, &server.db[0], key);
/* The keys are not actually logically deleted from the database, just moved to another node.
Expand Down

0 comments on commit da2ab1a

Please sign in to comment.