From 128fcfcac7d3fb66ca2c799df521591a98b82e05 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 21 Jan 2013 14:31:00 -0800 Subject: [PATCH] note puller's max chunk in pull requests this lets us calculate a cost value --- src/osd/ReplicatedPG.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 1738d29edb935..aaa11f1188fbc 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; -- 2.39.5