summaryrefslogtreecommitdiffstats
path: root/src/os
diff options
context:
space:
mode:
authorKefu Chai <tchaikov@gmail.com>2017-10-19 07:53:15 +0200
committerGitHub <noreply@github.com>2017-10-19 07:53:15 +0200
commit0d32658ecfb3e804010a2e03cbf5ebe6ef972dbb (patch)
tree4363fc6b8ed0f78a9f73144b5f80d88a4e4c59b1 /src/os
parentMerge pull request #18256 from liewegas/wip-bluestore-superblock (diff)
parentos/Filestore: fix wbthrottle assert. (diff)
downloadceph-0d32658ecfb3e804010a2e03cbf5ebe6ef972dbb.tar.xz
ceph-0d32658ecfb3e804010a2e03cbf5ebe6ef972dbb.zip
Merge pull request #14213 from xiaoxichen/fix_wbthrottle_assert
os/Filestore: fix wbthrottle assert. Reviewed-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'src/os')
-rw-r--r--src/os/filestore/WBThrottle.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/filestore/WBThrottle.cc b/src/os/filestore/WBThrottle.cc
index c45f90ca5e8..eee8e12a88a 100644
--- a/src/os/filestore/WBThrottle.cc
+++ b/src/os/filestore/WBThrottle.cc
@@ -135,7 +135,7 @@ bool WBThrottle::get_next_should_flush(
{
assert(lock.is_locked());
assert(next);
- while (!stopping && !beyond_limit())
+ while (!stopping && (!beyond_limit() || pending_wbs.empty()))
cond.Wait(lock);
if (stopping)
return false;