Skip to content

Commit a49d469

Browse files
sarthakaggarwal97ranshidJimB123
authored
Reverts hashHashtableTypeValidate signature (#2799)
Fixes https://github.com/valkey-io/valkey/actions/runs/19053371057/job/54418411647#step:6:202 Matched hashHashtableTypeValidate to the [generic hashtable callback signature ](https://github.com/valkey-io/valkey/blob/unstable/src/hashtable.h#L62)and performed the entry cast internally to preserve expiry checks. --------- Signed-off-by: Sarthak Aggarwal <[email protected]> Signed-off-by: Ran Shidlansik <[email protected]> Co-authored-by: Ran Shidlansik <[email protected]> Co-authored-by: Jim Brunner <[email protected]>
1 parent a99c636 commit a49d469

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/t_hash.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,10 @@ static void hashTypeTrackUpdateEntry(robj *o, entry *old_entry, entry *new_entry
146146
}
147147
}
148148

149-
bool hashHashtableTypeValidate(hashtable *ht, entry *entry) {
149+
// This is a hashtableType validateEntry callback
150+
bool hashHashtableTypeValidate(hashtable *ht, void *entryptr) {
150151
UNUSED(ht);
152+
entry *entry = entryptr;
151153
expirationPolicy policy = getExpirationPolicyWithFlags(0);
152154
if (policy == POLICY_IGNORE_EXPIRE) return true;
153155

0 commit comments

Comments
 (0)