Skip to content

Commit cbf7850

Browse files
committed
test/scrub: fixes to aggregate initialization in test_crimson_scrub.cc
Signed-off-by: Ronen Friedman <[email protected]>
1 parent 5e2f4e8 commit cbf7850

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/crimson/test_crimson_scrub.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ TEST_P(TestSingleError, SingleError) {
854854
bool found_selected_oi = false;
855855
for (const auto &shard : shards) {
856856
auto siter = obj_error.shards.find(
857-
librados::osd_shard_t(shard.osd, shard.shard)
857+
librados::osd_shard_t{shard.osd, shard.shard}
858858
);
859859
if (siter == obj_error.shards.end()) {
860860
EXPECT_NE(siter, obj_error.shards.end());
@@ -1125,7 +1125,7 @@ TEST_P(TestSnapSetCloneError, CloneError) {
11251125
auto to_insert = make_clone(name, should_exist[i]);
11261126
if (GetParam().should_inject_size(i)) {
11271127
expected_error.set_size_mismatch();
1128-
to_insert.second = so_builder_t(to_insert.second).set_size(
1128+
to_insert.second = so_builder_t{to_insert.second}.set_size(
11291129
so_get_oi(to_insert.second)->size + 1).get();
11301130
}
11311131
map.objects.insert(to_insert);

0 commit comments

Comments
 (0)