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>
(cherry picked from commit
45620dc312ca2aeaf084638144aaa4783b622c4a)
} 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) {