summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2016-05-19 10:56:34 +0200
committerantirez <antirez@gmail.com>2016-09-07 15:28:46 +0200
commit560e6787e17f3ff6fc52b8341197e8ae8b263b07 (patch)
tree9ff2a2b9410d27043cd8776d4c692c3a3630735e
parent0d179d17ba8a93d0a74ea8ecbbe383cc884fcb85 (diff)
downloadredis-560e6787e17f3ff6fc52b8341197e8ae8b263b07.tar.gz
Clustered dict.c entries WIP.
-rw-r--r--src/dict.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/dict.h b/src/dict.h
index 967a238b6..63ac7244f 100644
--- a/src/dict.h
+++ b/src/dict.h
@@ -52,9 +52,13 @@ typedef struct dictEntry {
int64_t s64;
double d;
} v;
- struct dictEntry *next;
} dictEntry;
+typedef struct dictEntrySlot {
+ unsigned long numentries;
+ dictEntry *entries;
+} dictEntrySlot;
+
typedef struct dictType {
unsigned int (*hashFunction)(const void *key);
void *(*keyDup)(void *privdata, const void *key);
@@ -67,7 +71,7 @@ typedef struct dictType {
/* This is our hash table structure. Every dictionary has two of this as we
* implement incremental rehashing, for the old to the new table. */
typedef struct dictht {
- dictEntry **table;
+ dictEntrySlot **table;
unsigned long size;
unsigned long sizemask;
unsigned long used;