dict: fix the int problem for defrag

This commit is contained in:
zhaozhao.zz
2017-11-30 11:34:37 +08:00
committed by antirez
parent b37099a145
commit c9cb699bfb
3 changed files with 5 additions and 5 deletions

View File

@ -289,7 +289,7 @@ int defragKey(redisDb *db, dictEntry *de) {
/* Dirty code:
* I can't search in db->expires for that key after i already released
* the pointer it holds it won't be able to do the string compare */
unsigned int hash = dictGetHash(db->dict, de->key);
uint64_t hash = dictGetHash(db->dict, de->key);
replaceSateliteDictKeyPtrAndOrDefragDictEntry(db->expires, keysds, newsds, hash, &defragged);
}