]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd: Implement cls_cxx_map_remove_range()
authorAmnon Hanuhov <ahanukov@redhat.com>
Wed, 17 Jun 2020 13:31:49 +0000 (16:31 +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 d6e6766283ea6f7f567cef32f3ae18327e95e97d..a84b88040983c1dd7011d0e3f0fea5acf440d1ce 100644 (file)
@@ -365,7 +365,10 @@ int cls_cxx_map_remove_range(cls_method_context_t hctx,
                              const std::string& key_begin,
                              const std::string& key_end)
 {
-  return 0;
+  OSDOp op{CEPH_OSD_OP_OMAPRMKEYRANGE};
+  encode(key_begin, op.indata);
+  encode(key_end, op.indata);
+  return execute_osd_op(hctx, op);
 }
 
 int cls_cxx_map_remove_key(cls_method_context_t hctx, const string &key)