]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
filestore: fix peek_queue for OpSequencer 6145/head
authorXinze Chi <xinze@xksy.com>
Wed, 23 Sep 2015 11:26:00 +0000 (19:26 +0800)
committerLoic Dachary <ldachary@redhat.com>
Fri, 2 Oct 2015 10:50:52 +0000 (12:50 +0200)
Fixes: #13209
Signed-off-by: Xinze Chi <xinze@xsky.com>
(cherry picked from commit 5f7b3f5cde779f1300a35a04df2cdb1299f55472)

src/os/FileStore.h

index af1fb8d8121258edc278839324c0c89b74650f91..a9291b743c9bc3b214d8bb1cdb86fa04a6fa2239 100644 (file)
@@ -258,6 +258,7 @@ private:
       q.push_back(o);
     }
     Op *peek_queue() {
+      Mutex::Locker l(qlock);
       assert(apply_lock.is_locked());
       return q.front();
     }