Skip to content

Commit

Permalink
fix compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
moticless committed Apr 22, 2024
1 parent a827b51 commit 78eadaf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/t_hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -1997,6 +1997,7 @@ static uint64_t hfieldGetExpireTime(hfield field) {

/* Remove TTL from the field. Assumed ExpireMeta is attached and has valid value */
static void hfieldPersist(redisDb *db, robj *hashObj, hfield field) {
UNUSED(db);
uint64_t fieldExpireTime = hfieldGetExpireTime(field);
if (fieldExpireTime == EB_EXPIRE_TIME_INVALID)
return;
Expand All @@ -2008,8 +2009,6 @@ static void hfieldPersist(redisDb *db, robj *hashObj, hfield field) {
/* If field has valid expiry then dict must have valid metadata as well */
serverAssert(dictExpireMeta->expireMeta.trash == 0);

uint64_t minExpire = ebGetMetaExpTime(&dictExpireMeta->expireMeta);

/* Remove field from private HFE DS */
ebRemove(&dictExpireMeta->hfe, &hashFieldExpireBucketsType, field);

Expand Down

0 comments on commit 78eadaf

Please sign in to comment.