]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
note puller's max chunk in pull requests
authorSage Weil <sage@inktank.com>
Mon, 21 Jan 2013 22:31:00 +0000 (14:31 -0800)
committerSage Weil <sage@inktank.com>
Tue, 22 Jan 2013 22:47:40 +0000 (14:47 -0800)
this lets us calculate a cost value

src/osd/ReplicatedPG.cc

index 1738d29edb935cef231ebdb7fb1d4d262658426c..aaa11f1188fbc9886154a4a7f9bfc113ab18eb1a 100644 (file)
@@ -5193,6 +5193,7 @@ int ReplicatedPG::send_pull(int prio, int peer,
   subop->set_priority(prio);
   subop->ops = vector<OSDOp>(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;