Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
5cfb7927
Commit
5cfb7927
authored
Jul 28, 2015
by
antirez
Browse files
RDMF: dictRedisObjectDestructor -> dictObjectDestructor."
parent
a83e79b1
Changes
1
Show whitespace changes
Inline
Side-by-side
src/server.c
View file @
5cfb7927
...
@@ -454,7 +454,7 @@ int dictSdsKeyCaseCompare(void *privdata, const void *key1,
...
@@ -454,7 +454,7 @@ int dictSdsKeyCaseCompare(void *privdata, const void *key1,
return strcasecmp(key1, key2) == 0;
return strcasecmp(key1, key2) == 0;
}
}
void
dict
Redis
ObjectDestructor
(
void
*
privdata
,
void
*
val
)
void dictObjectDestructor(void *privdata, void *val)
{
{
DICT_NOTUSED(privdata);
DICT_NOTUSED(privdata);
...
@@ -536,7 +536,7 @@ dictType setDictType = {
...
@@ -536,7 +536,7 @@ dictType setDictType = {
NULL, /* key dup */
NULL, /* key dup */
NULL, /* val dup */
NULL, /* val dup */
dictEncObjKeyCompare, /* key compare */
dictEncObjKeyCompare, /* key compare */
dict
Redis
ObjectDestructor
,
/* key destructor */
dictObjectDestructor, /* key destructor */
NULL /* val destructor */
NULL /* val destructor */
};
};
...
@@ -546,7 +546,7 @@ dictType zsetDictType = {
...
@@ -546,7 +546,7 @@ dictType zsetDictType = {
NULL, /* key dup */
NULL, /* key dup */
NULL, /* val dup */
NULL, /* val dup */
dictEncObjKeyCompare, /* key compare */
dictEncObjKeyCompare, /* key compare */
dict
Redis
ObjectDestructor
,
/* key destructor */
dictObjectDestructor, /* key destructor */
NULL /* val destructor */
NULL /* val destructor */
};
};
...
@@ -557,7 +557,7 @@ dictType dbDictType = {
...
@@ -557,7 +557,7 @@ dictType dbDictType = {
NULL, /* val dup */
NULL, /* val dup */
dictSdsKeyCompare, /* key compare */
dictSdsKeyCompare, /* key compare */
dictSdsDestructor, /* key destructor */
dictSdsDestructor, /* key destructor */
dict
Redis
ObjectDestructor
/* 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 = {
...
@@ -567,7 +567,7 @@ dictType shaScriptObjectDictType = {
NULL, /* val dup */
NULL, /* val dup */
dictSdsKeyCaseCompare, /* key compare */
dictSdsKeyCaseCompare, /* key compare */
dictSdsDestructor, /* key destructor */
dictSdsDestructor, /* key destructor */
dict
Redis
ObjectDestructor
/* val destructor */
dictObjectDestructor /* val destructor */
};
};
/* Db->expires */
/* Db->expires */
...
@@ -596,8 +596,8 @@ dictType hashDictType = {
...
@@ -596,8 +596,8 @@ dictType hashDictType = {
NULL, /* key dup */
NULL, /* key dup */
NULL, /* val dup */
NULL, /* val dup */
dictEncObjKeyCompare, /* key compare */
dictEncObjKeyCompare, /* key compare */
dict
Redis
ObjectDestructor
,
/* key destructor */
dictObjectDestructor, /* key destructor */
dict
Redis
ObjectDestructor
/* 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 = {
...
@@ -608,7 +608,7 @@ dictType keylistDictType = {
NULL, /* key dup */
NULL, /* key dup */
NULL, /* val dup */
NULL, /* val dup */
dictObjKeyCompare, /* key compare */
dictObjKeyCompare, /* key compare */
dict
Redis
ObjectDestructor
,
/* key destructor */
dictObjectDestructor, /* key destructor */
dictListDestructor /* val destructor */
dictListDestructor /* val destructor */
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment