]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
journal: avoid race between flush request and in-flight flushes 6923/head
authorJason Dillaman <dillaman@redhat.com>
Mon, 14 Dec 2015 20:28:38 +0000 (15:28 -0500)
committerJason Dillaman <dillaman@redhat.com>
Mon, 14 Dec 2015 20:28:38 +0000 (15:28 -0500)
commit664903fbee4909d0f48d634cf2f694f8b5c1a554
treeff4bba864b00331b51354611c453a9e3c35bf6e4
parent3e6c990389b2cd8461538385e8f74884a79d7bc2
journal: avoid race between flush request and in-flight flushes

Previously, if the journal object was empty, a flush request could
complete instantly even if there is an in-flight 'record safe'
callback.

Fixes: #14060
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/journal/ObjectRecorder.cc
src/journal/ObjectRecorder.h