]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd: ClientRequest::reply_op_error() takes pgref by const
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 11 Oct 2022 13:37:26 +0000 (13:37 +0000)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 11 Oct 2022 14:39:35 +0000 (14:39 +0000)
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/crimson/osd/osd_operations/client_request.cc
src/crimson/osd/osd_operations/client_request.h

index 123f7e50c10bc2318e3d0ae8f0b7a101ab93e26a..1bf35331ebe053db9448f687fe5a51eb6c98f19a 100644 (file)
@@ -253,7 +253,7 @@ ClientRequest::process_op(instance_handle_t &ihref, Ref<PG> &pg)
   }));
 }
 
-auto ClientRequest::reply_op_error(Ref<PG>& pg, int err)
+auto ClientRequest::reply_op_error(const Ref<PG>& pg, int err)
 {
   logger().debug("{}: replying with error {}", *this, err);
   auto reply = crimson::make_message<MOSDOpReply>(
index 27bab52f522e7b536b6252c2547c5e931bfe6c91..4b91109b923b4f481cb81825199bb833cf52dcf8 100644 (file)
@@ -212,7 +212,7 @@ public:
 private:
   template <typename FuncT>
   interruptible_future<> with_sequencer(FuncT&& func);
-  auto reply_op_error(Ref<PG>& pg, int err);
+  auto reply_op_error(const Ref<PG>& pg, int err);
 
   enum class seq_mode_t {
     IN_ORDER,