Reduce P99 latency with async rehash

Former-commit-id: 7ea4c26fd82c0cdfa377183083f38a43336e480b
This commit is contained in:
John Sully 2021-04-12 03:22:22 +00:00
parent df66c598e9
commit e6782d8f1b

View File

@ -384,7 +384,7 @@ dictAsyncRehashCtl *dictRehashAsyncStart(dict *d, int buckets) {
d->asyncdata = new dictAsyncRehashCtl(d, d->asyncdata); d->asyncdata = new dictAsyncRehashCtl(d, d->asyncdata);
int empty_visits = buckets * 10; int empty_visits = buckets;
while (d->asyncdata->queue.size() < (size_t)buckets && (size_t)d->rehashidx < d->ht[0].size) { while (d->asyncdata->queue.size() < (size_t)buckets && (size_t)d->rehashidx < d->ht[0].size) {
dictEntry *de; dictEntry *de;