Fix complain

This commit is contained in:
debing.sun 2025-05-12 18:10:14 +08:00
parent 75bdf68487
commit 5ab7de465b
1 changed files with 1 additions and 2 deletions

View File

@ -1263,9 +1263,9 @@ static doneStatus defragStageExpiresKvstore(void *ctx, monotime endtime) {
void *activeDefragHExpiresOB(void *ptr, void *privdata) {
redisDb *db = privdata;
dictEntryLink link, exlink = NULL;
int slot;
kvobj *kvobj = ptr;
sds keystr = kvobjGetKey(kvobj);
unsigned int slot = calculateKeySlot(keystr);
serverAssert(kvobj->type == OBJ_HASH);
long long expire = kvobjGetExpire(kvobj);
@ -1279,7 +1279,6 @@ void *activeDefragHExpiresOB(void *ptr, void *privdata) {
if ((kvobj = activeDefragAlloc(kvobj))) {
/* Update its reference in the DB keys. */
unsigned int slot = calculateKeySlot(keystr);
link = kvstoreDictFindLink(db->keys, slot, keystr, NULL);
serverAssert(link != NULL);
kvstoreDictSetAtLink(db->keys, slot, kvobj, &link, 0);