]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
osd/ReplicatedBackend: set recovry_info.ss on non-head push
authorSage Weil <sage@redhat.com>
Tue, 28 Mar 2017 20:07:29 +0000 (16:07 -0400)
committerSage Weil <sage@redhat.com>
Fri, 5 May 2017 17:38:12 +0000 (13:38 -0400)
Replicas need this in order to store the clones in SnapMapper.

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/ReplicatedBackend.cc
src/osd/osd_types.cc

index ba5ab88151be0a28b55530b1553dc041db2387fe..fc6c0806984948aed5f99ef73f55db2a56441731 100644 (file)
@@ -1497,6 +1497,7 @@ void ReplicatedBackend::prep_push_to_replica(
     SnapSetContext *ssc = obc->ssc;
     assert(ssc);
     dout(15) << "push_to_replica snapset is " << ssc->snapset << dendl;
+    pop->recovery_info.ss = ssc->snapset;
     map<pg_shard_t, pg_missing_t>::const_iterator pm =
       get_parent()->get_shard_missing().find(peer);
     assert(pm != get_parent()->get_shard_missing().end());
@@ -1568,6 +1569,7 @@ void ReplicatedBackend::prep_push(
   pi.recovery_info.clone_subset = clone_subsets;
   pi.recovery_info.soid = soid;
   pi.recovery_info.oi = obc->obs.oi;
+  pi.recovery_info.ss = pop->recovery_info.ss;
   pi.recovery_info.version = version;
   pi.lock_manager = std::move(lock_manager);
 
index b04064da1eaf93692406ab7a53e6ffc58ba8aa0b..f1d0c8ba03f1bd1819ad9a94ba0585ef62e40991 100644 (file)
@@ -5289,6 +5289,7 @@ ostream &ObjectRecoveryInfo::print(ostream &out) const
             << ", size: " << size
             << ", copy_subset: " << copy_subset
             << ", clone_subset: " << clone_subset
+            << ", snapset: " << ss
             << ")";
 }