Unverified Commit f39c9404 authored by Jim Brunner's avatar Jim Brunner Committed by GitHub
Browse files

Prevent dictRehashMilliseconds from rehashing while a safe iterator is present (#5948)

parent 229327ad
...@@ -239,6 +239,8 @@ long long timeInMilliseconds(void) { ...@@ -239,6 +239,8 @@ long long timeInMilliseconds(void) {
/* Rehash for an amount of time between ms milliseconds and ms+1 milliseconds */ /* Rehash for an amount of time between ms milliseconds and ms+1 milliseconds */
int dictRehashMilliseconds(dict *d, int ms) { int dictRehashMilliseconds(dict *d, int ms) {
if (d->iterators > 0) return 0;
long long start = timeInMilliseconds(); long long start = timeInMilliseconds();
int rehashes = 0; int rehashes = 0;
......
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