]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ReplicatedPG: use the client_messenger for OSD Op replies
authorGreg Farnum <gregory.farnum@dreamhost.com>
Sun, 4 Sep 2011 23:53:47 +0000 (16:53 -0700)
committerGreg Farnum <gregory.farnum@dreamhost.com>
Sun, 4 Sep 2011 23:53:47 +0000 (16:53 -0700)
We were erroneously using the cluster_messenger instead --
looks like the initial conversion just went wrong since this
is in the repop handling code.

Reported-by: Huang Jin <hjwsm1989@gmail.com>
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
src/osd/ReplicatedPG.cc

index 73b42acf13364d1ffa2901d2de8925e34fafdaaf..700b02c01c3327099a66cd819aafb63a14534197 100644 (file)
@@ -2817,7 +2817,8 @@ void ReplicatedPG::eval_repop(RepGather *repop)
          reply = new MOSDOpReply(op, 0, osd->osdmap->get_epoch(), 0);
        reply->add_flags(CEPH_OSD_FLAG_ACK);
        dout(10) << " sending ack on " << *repop << " " << reply << dendl;
-       osd->cluster_messenger->send_message(reply, op->get_connection());
+        assert(entity_name_t::TYPE_OSD != op->get_connection()->peer_type);
+       osd->client_messenger->send_message(reply, op->get_connection());
        repop->sent_ack = true;
       }