From: Jianpeng Ma Date: Wed, 7 Aug 2019 02:10:42 +0000 (+0800) Subject: os/bluestore: No need check !q.emtpy(). X-Git-Tag: v15.1.0~1903^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a2f63f46812c70540cbb757777828b68095238fc;p=ceph.git os/bluestore: No need check !q.emtpy(). when call drain_preceding, this TransContext already added into q. Signed-off-by: Jianpeng Ma --- diff --git a/src/os/bluestore/BlueStore.h b/src/os/bluestore/BlueStore.h index d7bd4af55441..268d5389a4a7 100644 --- a/src/os/bluestore/BlueStore.h +++ b/src/os/bluestore/BlueStore.h @@ -1637,7 +1637,7 @@ public: void drain_preceding(TransContext *txc) { std::unique_lock l(qlock); - while (!q.empty() && &q.front() != txc) + while (&q.front() != txc) qcond.wait(l); }