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

Function cls_queue_init

src/cls/queue/cls_queue.cc:21–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19CLS_NAME(queue)
20
21static int cls_queue_init(cls_method_context_t hctx, bufferlist *in, bufferlist *out)
22{
23 auto in_iter = in->cbegin();
24 cls_queue_init_op op;
25 try {
26 decode(op, in_iter);
27 } catch (ceph::buffer::error& err) {
28 CLS_LOG(1, "ERROR: cls_queue_init_op(): failed to decode entry\n");
29 return -EINVAL;
30 }
31
32 return queue_init(hctx, op);
33}
34
35static int cls_queue_get_capacity(cls_method_context_t hctx, bufferlist *in, bufferlist *out)
36{

Callers 1

TEST_FFunction · 0.50

Calls 3

queue_initFunction · 0.85
decodeFunction · 0.50
cbeginMethod · 0.45

Tested by 1

TEST_FFunction · 0.40