]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
journal: wait for in flight advance sets on stopping recorder 28529/head
authorMykola Golub <mgolub@suse.com>
Thu, 13 Jun 2019 11:05:17 +0000 (12:05 +0100)
committerMykola Golub <mgolub@suse.com>
Thu, 13 Jun 2019 11:05:17 +0000 (12:05 +0100)
commit340726ec89c4a2b57905aa1be328d55c96758fee
tree2ce92c8ae1aace7515cd256a4a81626458e67eb2
parent12ab3fcc6f28e1817befd4bc2795d21e7dbca46a
journal: wait for in flight advance sets on stopping recorder

Before object overflow detection optimization (83461c42b) the
overflow was detected when trying to send data, so when an object
set was advanced we always had some data and flush always
completed later. But now we detect overflow on client side, it
may happen when buffer is empty and flush may complete
when "advance object set" is still in flight.

Signed-off-by: Mykola Golub <mgolub@suse.com>
src/journal/JournalRecorder.cc
src/journal/JournalRecorder.h
src/journal/Journaler.cc