diff options
author | paule <liangpan03021327@163.com> | 2018-07-16 14:29:59 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-16 14:29:59 +0800 |
commit | b6ce7d5ddce573f500b8770d9052e0c422c91500 (patch) | |
tree | 19145de01b1e98a80842fb2314f688b9706dbb2b /src/dict.c | |
parent | 816fc6cbc67957baae6c2fa8332222da8bf789b7 (diff) | |
download | redis-b6ce7d5ddce573f500b8770d9052e0c422c91500.tar.gz |
Update dict.c
change coding style.
Diffstat (limited to 'src/dict.c')
-rw-r--r-- | src/dict.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/dict.c b/src/dict.c index 4db758618..4eeb26e0e 100644 --- a/src/dict.c +++ b/src/dict.c @@ -705,8 +705,10 @@ unsigned int dictGetSomeKeys(dict *d, dictEntry **des, unsigned int count) { * table, there will be no elements in both tables up to * the current rehashing index, so we jump if possible. * (this happens when going from big to small table). */ - if (i >= d->ht[1].size) i = d->rehashidx; - else continue; + if (i >= d->ht[1].size) + i = d->rehashidx; + else + continue; } if (i >= d->ht[j].size) continue; /* Out of range for this table. */ dictEntry *he = d->ht[j].table[i]; |