Commit e2a22ff1 authored by Vitaly Arbuzov's avatar Vitaly Arbuzov
Browse files

Remove unused function prototype from dict.h and rename parameter

parent 2783aa1d
...@@ -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 hashslot) {
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[hashslot]);
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));
......
...@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment