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
e2a22ff1
Commit
e2a22ff1
authored
Feb 07, 2023
by
Vitaly Arbuzov
Browse files
Remove unused function prototype from dict.h and rename parameter
parent
2783aa1d
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
e2a22ff1
...
@@ -7317,12 +7317,12 @@ int clusterRedirectBlockedClientIfNeeded(client *c) {
...
@@ -7317,12 +7317,12 @@ int clusterRedirectBlockedClientIfNeeded(client *c) {
/* Remove all the keys in the specified hash slot.
/* Remove all the keys in the specified hash slot.
* The number of removed items is returned. */
* The number of removed items is returned. */
unsigned
int
delKeysInSlot
(
unsigned
int
slot
)
{
unsigned
int
delKeysInSlot
(
unsigned
int
hash
slot
)
{
unsigned
int
j
=
0
;
unsigned
int
j
=
0
;
dictIterator
*
iter
=
NULL
;
dictIterator
*
iter
=
NULL
;
dictEntry
*
de
=
NULL
;
dictEntry
*
de
=
NULL
;
iter
=
dictGetSafeIterator
(
server
.
db
->
dict
[
slot
]);
iter
=
dictGetSafeIterator
(
server
.
db
->
dict
[
hash
slot
]);
while
((
de
=
dictNext
(
iter
))
!=
NULL
)
{
while
((
de
=
dictNext
(
iter
))
!=
NULL
)
{
sds
sdskey
=
dictGetKey
(
de
);
sds
sdskey
=
dictGetKey
(
de
);
robj
*
key
=
createStringObject
(
sdskey
,
sdslen
(
sdskey
));
robj
*
key
=
createStringObject
(
sdskey
,
sdslen
(
sdskey
));
...
...
src/dict.h
View file @
e2a22ff1
...
@@ -217,7 +217,6 @@ unsigned long dictScan(dict *d, unsigned long v, dictScanFunction *fn, void *pri
...
@@ -217,7 +217,6 @@ unsigned long dictScan(dict *d, unsigned long v, dictScanFunction *fn, void *pri
unsigned
long
dictScanDefrag
(
dict
*
d
,
unsigned
long
v
,
dictScanFunction
*
fn
,
dictDefragFunctions
*
defragfns
,
void
*
privdata
);
unsigned
long
dictScanDefrag
(
dict
*
d
,
unsigned
long
v
,
dictScanFunction
*
fn
,
dictDefragFunctions
*
defragfns
,
void
*
privdata
);
uint64_t
dictGetHash
(
dict
*
d
,
const
void
*
key
);
uint64_t
dictGetHash
(
dict
*
d
,
const
void
*
key
);
dictEntry
*
dictFindEntryByPtrAndHash
(
dict
*
d
,
const
void
*
oldptr
,
uint64_t
hash
);
dictEntry
*
dictFindEntryByPtrAndHash
(
dict
*
d
,
const
void
*
oldptr
,
uint64_t
hash
);
unsigned
long
rev
(
unsigned
long
v
);
size_t
dictGetStatsMsg
(
char
*
buf
,
size_t
bufsize
,
dictStats
*
stats
);
size_t
dictGetStatsMsg
(
char
*
buf
,
size_t
bufsize
,
dictStats
*
stats
);
dictStats
*
dictGetStatsHt
(
dict
*
d
,
int
htidx
);
dictStats
*
dictGetStatsHt
(
dict
*
d
,
int
htidx
);
...
...
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