]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw/OutputDataSocket: actually discard data on full buffer 29279/head
authorMatt Benjamin <mbenjamin@redhat.com>
Wed, 5 Jun 2019 17:25:32 +0000 (13:25 -0400)
committerNathan Cutler <ncutler@suse.com>
Wed, 24 Jul 2019 14:44:54 +0000 (16:44 +0200)
commitaf709ffb00ffcb3d758e61fc711469aaa8c70a06
tree95e20a40cd8282612f083789c5e7debd1a23cb4e
parentc1cd465c4f7a185c193fc8999a74b9ff428ac254
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