From: Ilya Dryomov Date: Fri, 21 Mar 2025 13:49:44 +0000 (+0100) Subject: librbd: don't use public API flags in Group::snap_create() X-Git-Tag: testing/wip-vshankar-testing-20250325.080107-debug~5^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=f33bb0802e45966e794ec60454578df80dac41f6;p=ceph-ci.git librbd: don't use public API flags in Group::snap_create() Use internal flags obtained from snap_create_flags_api_to_internal() instead -- internal_flags variable was assigned but not used. Signed-off-by: Ilya Dryomov --- diff --git a/src/librbd/api/Group.cc b/src/librbd/api/Group.cc index 94d5cdfa847..22e3ba86757 100644 --- a/src/librbd/api/Group.cc +++ b/src/librbd/api/Group.cc @@ -922,8 +922,6 @@ int Group::snap_create(librados::IoCtx& group_ioctx, if (r < 0) { return r; } - internal_flags &= ~(SNAP_CREATE_FLAG_SKIP_NOTIFY_QUIESCE | - SNAP_CREATE_FLAG_IGNORE_NOTIFY_QUIESCE_ERROR); r = cls_client::dir_get_id(&group_ioctx, RBD_GROUP_DIRECTORY, group_name, &group_id); @@ -1012,10 +1010,11 @@ int Group::snap_create(librados::IoCtx& group_ioctx, goto remove_record; } - if ((flags & RBD_SNAP_CREATE_SKIP_QUIESCE) == 0) { + if ((internal_flags & SNAP_CREATE_FLAG_SKIP_NOTIFY_QUIESCE) == 0) { ldout(cct, 20) << "Sending quiesce notification" << dendl; ret_code = notify_quiesce(ictxs, prog_ctx, &quiesce_requests); - if (ret_code != 0 && (flags & RBD_SNAP_CREATE_IGNORE_QUIESCE_ERROR) == 0) { + if (ret_code != 0 && + (internal_flags & SNAP_CREATE_FLAG_IGNORE_NOTIFY_QUIESCE_ERROR) == 0) { goto remove_record; } }