]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: mark maybe_unused variables 55479/head
authorRonen Friedman <rfriedma@redhat.com>
Wed, 7 Feb 2024 15:00:29 +0000 (09:00 -0600)
committerRonen Friedman <rfriedma@redhat.com>
Wed, 7 Feb 2024 15:05:04 +0000 (09:05 -0600)
Specifically, variables that are only used in debug builds.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/rgw/driver/rados/cls_fifo_legacy.cc

index 4f2c0738b396a4b9d6e534717e1be94eaccc699b..fad9404fdb394ba3f5f8c11c92ee1db16c716c51 100644 (file)
@@ -547,7 +547,8 @@ void FIFO::_update_meta(const DoutPrefixProvider *dpp, const fifo::update& updat
   update_meta(&op, info.version, update);
   auto updater = std::make_unique<Updater>(dpp, this, c, update, version, pcanceled,
                                           tid);
-  auto r = ioctx.aio_operate(oid, Updater::call(std::move(updater)), &op);
+  [[maybe_unused]] auto r =
+      ioctx.aio_operate(oid, Updater::call(std::move(updater)), &op);
   assert(r >= 0);
 }
 
@@ -1296,8 +1297,9 @@ void FIFO::read_meta(const DoutPrefixProvider *dpp, std::uint64_t tid, lr::AioCo
   encode(gm, in);
   auto reader = std::make_unique<Reader>(dpp, this, c, tid);
   auto rp = reader.get();
-  auto r = ioctx.aio_exec(oid, Reader::call(std::move(reader)), fifo::op::CLASS,
-                         fifo::op::GET_META, in, &rp->bl);
+  [[maybe_unused]] auto r = ioctx.aio_exec(
+      oid, Reader::call(std::move(reader)), fifo::op::CLASS, fifo::op::GET_META,
+      in, &rp->bl);
   assert(r >= 0);
 }