mirror of
https://github.com/fluencelabs/redis
synced 2025-06-13 17:21:20 +00:00
dict.c: dictReplaceRaw() -> dictAddOrFind().
What they say about "naming things" in programming?
This commit is contained in:
2
src/db.c
2
src/db.c
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user