]> git.saurik.com Git - redis.git/blobdiff - src/dict.c
Undo rename of function names where something went wrong
[redis.git] / src / dict.c
index 9be7fb168ed00b8b633e06a47b0b74c87e6a70fd..6b7010ba2efba11231be224f5fe0479d8ccb605f 100644 (file)
@@ -203,6 +203,7 @@ int dictRehash(dict *d, int n) {
 
         /* Note that rehashidx can't overflow as we are sure there are more
          * elements because ht[0].used != 0 */
+        assert(d->ht[0].size > (unsigned)d->rehashidx);
         while(d->ht[0].table[d->rehashidx] == NULL) d->rehashidx++;
         de = d->ht[0].table[d->rehashidx];
         /* Move all the keys in this bucket from the old to the new hash HT */