]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
osd: Overload send_cluster_message() in PeeringState
authorAmnon Hanuhov <ahanukov@redhat.com>
Tue, 18 May 2021 10:37:09 +0000 (13:37 +0300)
committerAmnon Hanuhov <ahanukov@redhat.com>
Tue, 25 May 2021 12:28:32 +0000 (15:28 +0300)
One for crimson-osd taking std::unique_ptr and one for ceph-osd
taking boost::intrusive_ptr

Signed-off-by: Amnon Hanuhov <ahanukov@redhat.com>
src/crimson/osd/pg.h
src/osd/PeeringState.h

index ad42c4252f89a1de3127fb0aedafebb1230aa490..8763b6b9c640cb44705daa7b0eda002a603b68a4 100644 (file)
@@ -164,9 +164,9 @@ public:
   }
 
   void send_cluster_message(
-    int osd, MessageRef m,
+    int osd, MessageURef m,
     epoch_t epoch, bool share_map_update=false) final {
-    (void)shard_services.send_to_osd(osd, m, epoch);
+    (void)shard_services.send_to_osd(osd, std::move(m), epoch);
   }
 
   void send_pg_created(pg_t pgid) final {
index d8615ec5d07c327519be452f40a136a1a3a5a846..ed8a0fe2e054e86d95d0f06ab2439e2065161904 100644 (file)
@@ -265,8 +265,13 @@ public:
     virtual uint64_t get_snap_trimq_size() const = 0;
 
     /// Send cluster message to osd
+    #if defined(WITH_SEASTAR)
+    virtual void send_cluster_message(
+      int osd, MessageURef m, epoch_t epoch, bool share_map_update=false) = 0;
+    #else
     virtual void send_cluster_message(
       int osd, MessageRef m, epoch_t epoch, bool share_map_update=false) = 0;
+    #endif
     /// Send pg_created to mon
     virtual void send_pg_created(pg_t pgid) = 0;