Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
tezc committed Apr 24, 2024
1 parent ac73fcf commit c36381c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/t_hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ static void listpackTTLUpdateExpiry(robj *o, sds field,
s = lpGetValue(fptr, NULL, &currExpiry);
serverAssert(!s);

if (currExpiry == HASH_LP_NO_TTL || (uint64_t) currExpiry > expireAt) {
if (currExpiry == HASH_LP_NO_TTL || (uint64_t) currExpiry >= expireAt) {
/* Found a field with no expiry time or with a higher expiry time.
* Insert new field just before it. */
lpt->lp = lpInsertString(lpt->lp, (unsigned char*) field,
Expand Down

0 comments on commit c36381c

Please sign in to comment.