wait_cond.Signal();
while(pause_threads.read()) {
cct->get_heartbeat_map()->reset_timeout(hb, 4, 0);
- shardedpol_cond.WaitInterval(cct, shardedpool_lock, utime_t(2, 0));
+ shardedpool_cond.WaitInterval(cct, shardedpool_lock, utime_t(2, 0));
}
--num_paused;
shardedpool_lock.Unlock();
wait_cond.Signal();
while (drain_threads.read()) {
cct->get_heartbeat_map()->reset_timeout(hb, 4, 0);
- shardedpol_cond.WaitInterval(cct, shardedpool_lock, utime_t(2, 0));
+ shardedpool_cond.WaitInterval(cct, shardedpool_lock, utime_t(2, 0));
}
--num_drained;
}
ldout(cct,10) << "unpause" << dendl;
shardedpool_lock.Lock();
pause_threads.set(0);
- shardedpol_cond.Signal();
+ shardedpool_cond.Signal();
shardedpool_lock.Unlock();
ldout(cct,10) << "unpaused" << dendl;
}
wait_cond.Wait(shardedpool_lock);
}
drain_threads.set(0);
+ shardedpool_cond.Signal();
shardedpool_lock.Unlock();
ldout(cct,10) << "drained" << dendl;
}