Skip to content

Commit d4bdde9

Browse files
authored
Merge pull request ceph#55479 from ronen-fr/wip-rf-fifolegacy
rgw: mark maybe_unused variables Reviewed-by: Casey Bodley <[email protected]>
2 parents 608a5b2 + 5172ad0 commit d4bdde9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/rgw/driver/rados/cls_fifo_legacy.cc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,8 @@ void FIFO::_update_meta(const DoutPrefixProvider *dpp, const fifo::update& updat
547547
update_meta(&op, info.version, update);
548548
auto updater = std::make_unique<Updater>(dpp, this, c, update, version, pcanceled,
549549
tid);
550-
auto r = ioctx.aio_operate(oid, Updater::call(std::move(updater)), &op);
550+
[[maybe_unused]] auto r =
551+
ioctx.aio_operate(oid, Updater::call(std::move(updater)), &op);
551552
assert(r >= 0);
552553
}
553554

@@ -1296,8 +1297,9 @@ void FIFO::read_meta(const DoutPrefixProvider *dpp, std::uint64_t tid, lr::AioCo
12961297
encode(gm, in);
12971298
auto reader = std::make_unique<Reader>(dpp, this, c, tid);
12981299
auto rp = reader.get();
1299-
auto r = ioctx.aio_exec(oid, Reader::call(std::move(reader)), fifo::op::CLASS,
1300-
fifo::op::GET_META, in, &rp->bl);
1300+
[[maybe_unused]] auto r = ioctx.aio_exec(
1301+
oid, Reader::call(std::move(reader)), fifo::op::CLASS, fifo::op::GET_META,
1302+
in, &rp->bl);
13011303
assert(r >= 0);
13021304
}
13031305

0 commit comments

Comments
 (0)