From 61ff95c1ecec538a748294dd47f2ccc0be693f75 Mon Sep 17 00:00:00 2001 From: Victor Denisov Date: Mon, 11 Dec 2017 18:50:26 -0800 Subject: [PATCH] cls_rbd: Remove h_group_create Signed-off-by: Victor Denisov --- src/cls/rbd/cls_rbd.cc | 23 ----------------------- 1 file changed, 23 deletions(-) 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; -- 2.39.5