From: Sage Weil Date: Mon, 21 Jan 2013 22:31:00 +0000 (-0800) Subject: note puller's max chunk in pull requests X-Git-Tag: v0.57~146^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=128fcfcac7d3fb66ca2c799df521591a98b82e05;p=ceph.git note puller's max chunk in pull requests this lets us calculate a cost value --- diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 1738d29edb93..aaa11f1188fb 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -5193,6 +5193,7 @@ int ReplicatedPG::send_pull(int prio, int peer, subop->set_priority(prio); subop->ops = vector(1); subop->ops[0].op.op = CEPH_OSD_OP_PULL; + subop->ops[0].op.extent.length = g_conf->osd_recovery_max_chunk; subop->recovery_info = recovery_info; subop->recovery_progress = progress;