]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw/OutputDataSocket: actually discard data on full buffer 31654/head
authorMatt Benjamin <mbenjamin@redhat.com>
Wed, 5 Jun 2019 17:25:32 +0000 (13:25 -0400)
committerNathan Cutler <ncutler@suse.com>
Thu, 14 Nov 2019 18:33:31 +0000 (19:33 +0100)
commit42add01ac7ba93413784de93fa9b64c1afa0e2a8
treeaa92b37e5110f4cb0aefde16694c8d382f38bd87
parent7ab836dfa93e1fc657811e3e0ffdae4d832a5d76
rgw/OutputDataSocket: actually discard data on full buffer

A dout message in OutputDataSocket::append_output() states that
data will be dropped when appending would cause data_max_backlog
to be exceeded--but the method appends it anyway.

Log output discards at level 0, as messages will be lost.  Suppress
repeated warnings mod 100.  Switch to vector.

Fixes: http://tracker.ceph.com/issues/40178
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit c806b825dae649829de8847d36cb21ffd2bbee8e)

Conflicts:
src/common/OutputDataSocket.cc
src/common/OutputDataSocket.h
src/common/OutputDataSocket.cc
src/common/OutputDataSocket.h