MCPcopy Create free account
hub / github.com/ceph/ceph / set_data

Method set_data

src/msg/Message.h:450–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

448 const ceph::buffer::list& get_middle() const { return middle; }
449
450 void set_data(const ceph::buffer::list &bl) {
451 if (byte_throttler)
452 byte_throttler->put(data.length());
453 data.share(bl);
454 if (byte_throttler)
455 byte_throttler->take(data.length());
456 }
457
458 const ceph::buffer::list& get_data() const { return data; }
459 ceph::buffer::list& get_data() { return data; }

Callers 15

_send_commandMethod · 0.45
handle_commandMethod · 0.45
send_lock_messageMethod · 0.45
_update_cap_fieldsMethod · 0.45
TEST_PFunction · 0.45
reply_messageMethod · 0.45
send_message_wrapMethod · 0.45
send_large_messageMethod · 0.45
reply_messageMethod · 0.45
send_message_wrapMethod · 0.45
decode_messageFunction · 0.45

Calls 4

putMethod · 0.45
lengthMethod · 0.45
shareMethod · 0.45
takeMethod · 0.45

Tested by 6

TEST_PFunction · 0.36
reply_messageMethod · 0.36
send_message_wrapMethod · 0.36
send_large_messageMethod · 0.36
reply_messageMethod · 0.36
send_message_wrapMethod · 0.36