dict.c: dictReplaceRaw() -> dictAddOrFind().

What they say about "naming things" in programming?
This commit is contained in:
antirez
2016-09-14 16:43:38 +02:00
parent 041ab04419
commit 09a50d34a2
3 changed files with 4 additions and 4 deletions

View File

@ -943,7 +943,7 @@ void setExpire(redisDb *db, robj *key, long long when) {
/* Reuse the sds from the main dict in the expire dict */
kde = dictFind(db->dict,key->ptr);
serverAssertWithInfo(NULL,key,kde != NULL);
de = dictReplaceRaw(db->expires,dictGetKey(kde));
de = dictAddOrFind(db->expires,dictGetKey(kde));
dictSetSignedIntegerVal(de,when);
}