Merge pull request #2525 from ceph/wip-9487

RFC: initialize purged_snaps on backfill

Reviewed-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Samuel Just 2014-10-01 13:45:27 -07:00
commit b1ca1f23ff
2 changed files with 4 additions and 1 deletions

View File

@ -1560,6 +1560,9 @@ void PG::activate(ObjectStore::Transaction& t,
pi.hit_set = info.hit_set;
pi.stats.stats.clear();
// initialize peer with our purged_snaps.
pi.purged_snaps = info.purged_snaps;
m = new MOSDPGLog(
i->shard, pg_whoami.shard,
get_osdmap()->get_epoch(), pi);

View File

@ -12395,7 +12395,7 @@ boost::statechart::result ReplicatedPG::WaitingOnReplicas::react(const SnapTrim&
context<SnapTrimmer>().need_share_pg_info = true;
// Back to the start
post_event(SnapTrim());
pg->queue_snap_trim();
return transit< NotTrimming >();
}