Skip to content

Commit

Permalink
ReplicatedBackend::prepare_pull: set recover_info.size for clones
Browse files Browse the repository at this point in the history
Fixes: #12828
Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit 1d3e46b)
  • Loading branch information
athanatos authored and ldachary committed Oct 2, 2015
1 parent e72bdc3 commit 57e0690
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/osd/ReplicatedBackend.cc
Expand Up @@ -1500,6 +1500,9 @@ void ReplicatedBackend::prepare_pull(
recovery_info.clone_subset);
// FIXME: this may overestimate if we are pulling multiple clones in parallel...
dout(10) << " pulling " << recovery_info << dendl;

assert(ssc->snapset.clone_size.count(soid.snap));
recovery_info.size = ssc->snapset.clone_size[soid.snap];
} else {
// pulling head or unversioned object.
// always pull the whole thing.
Expand Down

0 comments on commit 57e0690

Please sign in to comment.