From 397042a0cb2f4c628dd722192fee284359d2cbb3 Mon Sep 17 00:00:00 2001 From: Xinze Chi Date: Wed, 23 Sep 2015 19:26:00 +0800 Subject: [PATCH] filestore: fix peek_queue for OpSequencer Fixes: #13209 Signed-off-by: Xinze Chi (cherry picked from commit 5f7b3f5cde779f1300a35a04df2cdb1299f55472) --- src/os/FileStore.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/os/FileStore.h b/src/os/FileStore.h index af1fb8d81212..a9291b743c9b 100644 --- a/src/os/FileStore.h +++ b/src/os/FileStore.h @@ -258,6 +258,7 @@ private: q.push_back(o); } Op *peek_queue() { + Mutex::Locker l(qlock); assert(apply_lock.is_locked()); return q.front(); } -- 2.47.3