]> git-server-git.apps.pok.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)
committerSamuel Just <sam.just@inktank.com>
Sat, 26 Jan 2013 01:16:37 +0000 (17:16 -0800)
this lets us calculate a cost value
(cherry picked from commit 128fcfcac7d3fb66ca2c799df521591a98b82e05)

src/osd/ReplicatedPG.cc

index 937046692ea6f2242b6deed898a51377c63b5890..e3d090b14017dcdb23b8805afccbb499a6d5db97 100644 (file)
@@ -5191,6 +5191,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;