From 2be6367cb0119d86dfecfa94eb4a3a102c40162a Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Mon, 17 Oct 2016 09:48:20 -0400 Subject: [PATCH] journal: do not prematurely flag object recorder as closed Fixes: http://tracker.ceph.com/issues/17590 Signed-off-by: Jason Dillaman --- src/journal/ObjectRecorder.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/journal/ObjectRecorder.cc b/src/journal/ObjectRecorder.cc index 58dd14df1d8..a2faeae8aa6 100644 --- a/src/journal/ObjectRecorder.cc +++ b/src/journal/ObjectRecorder.cc @@ -173,7 +173,7 @@ bool ObjectRecorder::close() { assert(!m_object_closed); m_object_closed = true; - return m_in_flight_tids.empty() && !m_aio_scheduled; + return (m_in_flight_tids.empty() && !m_in_flight_flushes && !m_aio_scheduled); } void ObjectRecorder::handle_append_task() {