From 5f7b3f5cde779f1300a35a04df2cdb1299f55472 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 --- src/os/FileStore.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/os/FileStore.h b/src/os/FileStore.h index d45dc01a6a8..4ea23b400d7 100644 --- a/src/os/FileStore.h +++ b/src/os/FileStore.h @@ -257,6 +257,7 @@ private: q.push_back(o); } Op *peek_queue() { + Mutex::Locker l(qlock); assert(apply_lock.is_locked()); return q.front(); }