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

Function cls_2pc_queue_get_capacity

src/cls/2pc_queue/cls_2pc_queue.cc:58–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58static int cls_2pc_queue_get_capacity(cls_method_context_t hctx, bufferlist *in, bufferlist *out)
59{
60 cls_queue_get_capacity_ret op_ret;
61 auto ret = queue_get_capacity(hctx, op_ret);
62 if (ret < 0) {
63 return ret;
64 }
65
66 encode(op_ret, *out);
67 return 0;
68}
69
70static int cls_2pc_queue_get_topic_stats(cls_method_context_t hctx, bufferlist *in, bufferlist *out)
71{

Callers 1

TEST_FFunction · 0.50

Calls 2

queue_get_capacityFunction · 0.85
encodeFunction · 0.50

Tested by 1

TEST_FFunction · 0.40