mirror of
https://github.com/ceph/ceph
synced 2024-12-28 06:23:08 +00:00
msg/Message: fix set_middle vs throttler
Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
a9651282f7
commit
e7bf50b27a
@ -361,10 +361,10 @@ public:
|
||||
|
||||
void set_middle(bufferlist& bl) {
|
||||
if (byte_throttler)
|
||||
byte_throttler->put(payload.length());
|
||||
byte_throttler->put(middle.length());
|
||||
middle.claim(bl, buffer::list::CLAIM_ALLOW_NONSHAREABLE);
|
||||
if (byte_throttler)
|
||||
byte_throttler->take(payload.length());
|
||||
byte_throttler->take(middle.length());
|
||||
}
|
||||
bufferlist& get_middle() { return middle; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user