From: Victor Denisov Date: Tue, 12 Dec 2017 02:50:26 +0000 (-0800) Subject: cls_rbd: Remove h_group_create X-Git-Tag: wip-pdonnell-testing-20180317.202121~588^2~34 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=61ff95c1ecec538a748294dd47f2ccc0be693f75;p=ceph-ci.git cls_rbd: Remove h_group_create Signed-off-by: Victor Denisov --- diff --git a/src/cls/rbd/cls_rbd.cc b/src/cls/rbd/cls_rbd.cc index c6e43a6064d..bfb29c28912 100644 --- a/src/cls/rbd/cls_rbd.cc +++ b/src/cls/rbd/cls_rbd.cc @@ -4616,28 +4616,6 @@ int mirror_image_map_remove(cls_method_context_t hctx, bufferlist *in, return 0; } -/** - * Initialize the header with basic metadata. - * Everything is stored as key/value pairs as omaps in the header object. - * - * Input: - * none - * - * Output: - * @return 0 on success, negative error code on failure - */ -int group_create(cls_method_context_t hctx, bufferlist *in, bufferlist *out) -{ - bufferlist snap_seqbl; - uint64_t snap_seq = 0; - ::encode(snap_seq, snap_seqbl); - int r = cls_cxx_map_set_val(hctx, GROUP_SNAP_SEQ, &snap_seqbl); - if (r < 0) - return r; - - return 0; -} - /** * List consistency groups from the directory. * @@ -5674,7 +5652,6 @@ CLS_INIT(rbd) cls_method_handle_t h_mirror_image_map_list; cls_method_handle_t h_mirror_image_map_update; cls_method_handle_t h_mirror_image_map_remove; - cls_method_handle_t h_group_create; cls_method_handle_t h_group_dir_list; cls_method_handle_t h_group_dir_add; cls_method_handle_t h_group_dir_remove;