diff options
author | Sage Weil <sage@inktank.com> | 2013-01-21 14:31:00 -0800 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-01-22 14:47:40 -0800 |
commit | 128fcfcac7d3fb66ca2c799df521591a98b82e05 (patch) | |
tree | 1816b54866560b75803672c9e2973b8ecb094e65 | |
parent | b685f727d4c37a26cb78bd4a04cce041428ceb52 (diff) | |
download | ceph-128fcfcac7d3fb66ca2c799df521591a98b82e05.tar.gz |
note puller's max chunk in pull requests
this lets us calculate a cost value
-rw-r--r-- | src/osd/ReplicatedPG.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 1738d29edb9..aaa11f1188f 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<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; |