]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd: Implement cls_cxx_map_read_header()
authorAmnon Hanuhov <ahanukov@redhat.com>
Wed, 27 May 2020 09:33:31 +0000 (12:33 +0300)
committerAmnon Hanuhov <ahanukov@redhat.com>
Wed, 24 Jun 2020 13:18:34 +0000 (16:18 +0300)
Signed-off-by: Amnon Hanuhov <ahanukov@redhat.com>
src/crimson/osd/objclass.cc

index 013ef35743bdef1a80882c78c0239ce7fc050660..ced15f90aed16f822fdb5ab817eda944d96901bd 100644 (file)
@@ -293,6 +293,11 @@ int cls_cxx_map_get_vals(cls_method_context_t hctx,
 
 int cls_cxx_map_read_header(cls_method_context_t hctx, bufferlist *outbl)
 {
+  OSDOp op{CEPH_OSD_OP_OMAPGETHEADER};
+  if (const auto ret = execute_osd_op(hctx, op); ret < 0) {
+    return ret;
+  }
+  outbl->claim(op.outdata);
   return 0;
 }