From: Kefu Chai Date: Tue, 26 Aug 2025 05:35:13 +0000 (+0800) Subject: cls/rbd: use brace initialization in cls_rbd_snap::generate_test_instances() X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=95620cb1e3a06c95ccf221a8d8c2f7942baf9b1a;p=ceph.git cls/rbd: use brace initialization in cls_rbd_snap::generate_test_instances() in ed6b7124, we switched some of them to explicit call of constructor to study some compiling failures, but forgot to revert to the original version after the failures were addressed. in this change, we revert them to the original version to be more consistent. Signed-off-by: Kefu Chai --- diff --git a/src/cls/rbd/cls_rbd.h b/src/cls/rbd/cls_rbd.h index 32ac460de60..d4a512f41c0 100644 --- a/src/cls/rbd/cls_rbd.h +++ b/src/cls/rbd/cls_rbd.h @@ -234,11 +234,11 @@ struct cls_rbd_snap { // otherwise check-generated.sh would fail due to the disprepancies between // the original dump and re-encoded dump o.push_back(cls_rbd_snap{1, "snap", 123456, - RBD_PROTECTION_STATUS_PROTECTED, cls_rbd_parent{}, 31, {}, + RBD_PROTECTION_STATUS_PROTECTED, {}, 31, {}, cls::rbd::UserSnapshotNamespace{}, 543, {}}); o.push_back(cls_rbd_snap{1, "snap", 123456, - RBD_PROTECTION_STATUS_PROTECTED, cls_rbd_parent{}, 31, utime_t{}, - cls::rbd::UserSnapshotNamespace{}, 543, std::optional{0}}); + RBD_PROTECTION_STATUS_PROTECTED, {}, 31, {}, + cls::rbd::UserSnapshotNamespace{}, 543, {0}}); o.push_back(cls_rbd_snap{1, "snap", 123456, RBD_PROTECTION_STATUS_PROTECTED, {}, 31, {}, cls::rbd::UserSnapshotNamespace{}, 543, {123}});