Merge pull request #6048 from XinzeChi/wip-filestore-qlock

filestore: fix peek_queue for OpSequencer

Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2015-09-25 08:56:02 -04:00
commit 892a2adeb5

View File

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