]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/OutputDataSocket: actually discard data on full buffer 29310/head
authorMatt Benjamin <mbenjamin@redhat.com>
Wed, 5 Jun 2019 17:25:32 +0000 (13:25 -0400)
committerNathan Cutler <ncutler@suse.com>
Thu, 25 Jul 2019 10:20:26 +0000 (12:20 +0200)
commitc40ab6bcdb294d906efe5aa3433b55a839c54b0e
tree661f3fe7a5e23e94a1acab926fefa61a931b941d
parent85fa207048f84d9c6125070861de8ae3d02b3c7b
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)
src/common/OutputDataSocket.cc
src/common/OutputDataSocket.h