From 95620cb1e3a06c95ccf221a8d8c2f7942baf9b1a Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Tue, 26 Aug 2025 13:35:13 +0800 Subject: [PATCH] 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 --- src/cls/rbd/cls_rbd.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cls/rbd/cls_rbd.h b/src/cls/rbd/cls_rbd.h index 32ac460de603..d4a512f41c0c 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}}); -- 2.47.3