]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/ReplicatedPG: allow osds to issue writes to osds
authorSage Weil <sage@inktank.com>
Fri, 25 Oct 2013 02:18:40 +0000 (19:18 -0700)
committerSage Weil <sage@inktank.com>
Sat, 14 Dec 2013 00:35:55 +0000 (16:35 -0800)
We asserted that the client was not an OSD years ago when we separated out
the client and cluster networks.  Now, we are about to allow an OSD to
trigger a copy_from on another pool (for cache flush) and the assert can
go away.  We've long since verified that the messages are going out on
the correct interfaces.

Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/ReplicatedPG.cc

index 400a51339f41a2fb4d85844843d26195365136b2..9ec92c2f5cfa68b8e23080bd0c195e7f38cf21fe 100644 (file)
@@ -4993,7 +4993,6 @@ void ReplicatedPG::eval_repop(RepGather *repop)
        }
        reply->add_flags(CEPH_OSD_FLAG_ACK | CEPH_OSD_FLAG_ONDISK);
        dout(10) << " sending commit on " << *repop << " " << reply << dendl;
-       assert(entity_name_t::TYPE_OSD != m->get_connection()->peer_type);
        osd->send_message_osd_client(reply, m->get_connection());
        repop->sent_disk = true;
        repop->ctx->op->mark_commit_sent();