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

Function cls_queue_list_entries

src/cls/queue/cls_queue.cc:73–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73static int cls_queue_list_entries(cls_method_context_t hctx, bufferlist *in, bufferlist *out)
74{
75 auto in_iter = in->cbegin();
76 cls_queue_list_op op;
77 try {
78 decode(op, in_iter);
79 } catch (ceph::buffer::error& err) {
80 CLS_LOG(5, "ERROR: cls_queue_list_entries(): failed to decode input data\n");
81 return -EINVAL;
82 }
83
84 cls_queue_head head;
85 auto ret = queue_read_head(hctx, head);
86 if (ret < 0) {
87 return ret;
88 }
89
90 cls_queue_list_ret op_ret;
91 ret = queue_list_entries(hctx, op, op_ret, head);
92 if (ret < 0) {
93 return ret;
94 }
95
96 encode(op_ret, *out);
97 return 0;
98}
99
100static int cls_queue_remove_entries(cls_method_context_t hctx, bufferlist *in, bufferlist *out)
101{

Callers 1

TEST_FFunction · 0.50

Calls 5

queue_read_headFunction · 0.85
queue_list_entriesFunction · 0.85
decodeFunction · 0.50
encodeFunction · 0.50
cbeginMethod · 0.45

Tested by 1

TEST_FFunction · 0.40