]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mds: move messages to be sent
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 19 Aug 2025 21:02:24 +0000 (17:02 -0400)
committerPatrick Donnelly <pdonnell@ibm.com>
Tue, 10 Feb 2026 17:59:48 +0000 (12:59 -0500)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/mds/MDSDaemon.cc

index ca2a94f7fcd023c0bb140e26a586e6e3ca43db42..ac3fd7e8eebb4dbf0f780dfb9061efb04964ac62 100644 (file)
@@ -783,7 +783,7 @@ void MDSDaemon::handle_command(const cref_t<MCommand> &m)
   auto reply = make_message<MCommandReply>(r, ss.str());
   reply->set_tid(m->get_tid());
   reply->set_data(outbl);
-  m->get_connection()->send_message2(reply);
+  m->get_connection()->send_message2(std::move(reply));
 }
 
 void MDSDaemon::handle_mds_map(const cref_t<MMDSMap> &m)
@@ -1267,7 +1267,7 @@ void MDSDaemon::ms_handle_accept(Connection *con)
 
       // send out any queued messages
       while (!s->preopen_out_queue.empty()) {
-       con->send_message2(s->preopen_out_queue.front());
+       con->send_message2(std::move(s->preopen_out_queue.front()));
        s->preopen_out_queue.pop_front();
       }
     }