RDMF: dictRedisObjectDestructor -> dictObjectDestructor."

This commit is contained in:
antirez 2015-07-28 11:03:01 +02:00
parent a83e79b176
commit 5cfb792777

View File

@ -454,7 +454,7 @@ int dictSdsKeyCaseCompare(void *privdata, const void *key1,
return strcasecmp(key1, key2) == 0; return strcasecmp(key1, key2) == 0;
} }
void dictRedisObjectDestructor(void *privdata, void *val) void dictObjectDestructor(void *privdata, void *val)
{ {
DICT_NOTUSED(privdata); DICT_NOTUSED(privdata);
@ -536,7 +536,7 @@ dictType setDictType = {
NULL, /* key dup */ NULL, /* key dup */
NULL, /* val dup */ NULL, /* val dup */
dictEncObjKeyCompare, /* key compare */ dictEncObjKeyCompare, /* key compare */
dictRedisObjectDestructor, /* key destructor */ dictObjectDestructor, /* key destructor */
NULL /* val destructor */ NULL /* val destructor */
}; };
@ -546,7 +546,7 @@ dictType zsetDictType = {
NULL, /* key dup */ NULL, /* key dup */
NULL, /* val dup */ NULL, /* val dup */
dictEncObjKeyCompare, /* key compare */ dictEncObjKeyCompare, /* key compare */
dictRedisObjectDestructor, /* key destructor */ dictObjectDestructor, /* key destructor */
NULL /* val destructor */ NULL /* val destructor */
}; };
@ -557,7 +557,7 @@ dictType dbDictType = {
NULL, /* val dup */ NULL, /* val dup */
dictSdsKeyCompare, /* key compare */ dictSdsKeyCompare, /* key compare */
dictSdsDestructor, /* key destructor */ dictSdsDestructor, /* key destructor */
dictRedisObjectDestructor /* val destructor */ dictObjectDestructor /* val destructor */
}; };
/* server.lua_scripts sha (as sds string) -> scripts (as robj) cache. */ /* server.lua_scripts sha (as sds string) -> scripts (as robj) cache. */
@ -567,7 +567,7 @@ dictType shaScriptObjectDictType = {
NULL, /* val dup */ NULL, /* val dup */
dictSdsKeyCaseCompare, /* key compare */ dictSdsKeyCaseCompare, /* key compare */
dictSdsDestructor, /* key destructor */ dictSdsDestructor, /* key destructor */
dictRedisObjectDestructor /* val destructor */ dictObjectDestructor /* val destructor */
}; };
/* Db->expires */ /* Db->expires */
@ -596,8 +596,8 @@ dictType hashDictType = {
NULL, /* key dup */ NULL, /* key dup */
NULL, /* val dup */ NULL, /* val dup */
dictEncObjKeyCompare, /* key compare */ dictEncObjKeyCompare, /* key compare */
dictRedisObjectDestructor, /* key destructor */ dictObjectDestructor, /* key destructor */
dictRedisObjectDestructor /* val destructor */ dictObjectDestructor /* val destructor */
}; };
/* Keylist hash table type has unencoded redis objects as keys and /* Keylist hash table type has unencoded redis objects as keys and
@ -608,7 +608,7 @@ dictType keylistDictType = {
NULL, /* key dup */ NULL, /* key dup */
NULL, /* val dup */ NULL, /* val dup */
dictObjKeyCompare, /* key compare */ dictObjKeyCompare, /* key compare */
dictRedisObjectDestructor, /* key destructor */ dictObjectDestructor, /* key destructor */
dictListDestructor /* val destructor */ dictListDestructor /* val destructor */
}; };