mirror of
https://github.com/ceph/ceph
synced 2024-12-18 17:37:38 +00:00
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:
parent
ee8d311a1f
commit
45620dc312
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user