journal: do not flag append as full if already known to be full

Once an object has overflowed or a close is in-progress, re-attempting
to close the object is not needed since the async process is already
underway.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
Jason Dillaman 2016-05-13 16:34:44 -04:00
parent ee8d311a1f
commit 45620dc312

View File

@ -69,7 +69,8 @@ bool ObjectRecorder::append(const AppendBuffers &append_buffers) {
} else {
cancel_append_task();
}
return (m_size + m_pending_bytes >= m_soft_max_size);
return (!m_object_closed && !m_overflowed &&
m_size + m_pending_bytes >= m_soft_max_size);
}
void ObjectRecorder::flush(Context *on_safe) {