From: Sage Weil Date: Fri, 13 Jan 2012 23:07:28 +0000 (-0800) Subject: librados: require OSDREPLYMUX feature X-Git-Tag: v0.41~27^2~10 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=012a985550d682d0cedd31a2878c1a39493a7c03;p=ceph.git librados: require OSDREPLYMUX feature We need this since we now rely on the server telling us rvals and payload_lens for each OSDOp. Signed-off-by: Sage Weil --- diff --git a/src/librados.cc b/src/librados.cc index 9cd44ddcb2ff..e8617844065f 100644 --- a/src/librados.cc +++ b/src/librados.cc @@ -929,6 +929,11 @@ int librados::RadosClient::connect() if (!messenger) goto out; + // require OSDREPLYMUX feature. this means we will fail to talk to + // old servers. this is necessary because otherwise we won't know + // how to decompose the reply data into its consituent pieces. + messenger->set_default_policy(SimpleMessenger::Policy::client(0, CEPH_FEATURE_OSDREPLYMUX)); + ldout(cct, 1) << "starting msgr at " << messenger->get_ms_addr() << dendl; messenger->register_entity(entity_name_t::CLIENT(-1));