Skip to content

Commit 95620cb

Browse files
committed
cls/rbd: use brace initialization in cls_rbd_snap::generate_test_instances()
in ed6b712, 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 <[email protected]>
1 parent f6387fd commit 95620cb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cls/rbd/cls_rbd.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,11 +234,11 @@ struct cls_rbd_snap {
234234
// otherwise check-generated.sh would fail due to the disprepancies between
235235
// the original dump and re-encoded dump
236236
o.push_back(cls_rbd_snap{1, "snap", 123456,
237-
RBD_PROTECTION_STATUS_PROTECTED, cls_rbd_parent{}, 31, {},
237+
RBD_PROTECTION_STATUS_PROTECTED, {}, 31, {},
238238
cls::rbd::UserSnapshotNamespace{}, 543, {}});
239239
o.push_back(cls_rbd_snap{1, "snap", 123456,
240-
RBD_PROTECTION_STATUS_PROTECTED, cls_rbd_parent{}, 31, utime_t{},
241-
cls::rbd::UserSnapshotNamespace{}, 543, std::optional<uint64_t>{0}});
240+
RBD_PROTECTION_STATUS_PROTECTED, {}, 31, {},
241+
cls::rbd::UserSnapshotNamespace{}, 543, {0}});
242242
o.push_back(cls_rbd_snap{1, "snap", 123456,
243243
RBD_PROTECTION_STATUS_PROTECTED, {}, 31, {},
244244
cls::rbd::UserSnapshotNamespace{}, 543, {123}});

0 commit comments

Comments
 (0)