mirror of
https://github.com/ceph/ceph
synced 2024-12-17 17:05:42 +00:00
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:
commit
b1ca1f23ff
@ -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);
|
||||
|
@ -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 >();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user