1
0
mirror of https://github.com/ceph/ceph synced 2025-02-27 21:15:28 +00:00

osd: check against last_peering_reset in _activate_committed

We are checking against last_peering_reset in _activate_committed(), so we
need to pass in that value to compare against; last_peering_reset may be
greater than same_interval_since, e.g. on a replica that learns about the
PG after the initial creation epoch.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
This commit is contained in:
Sage Weil 2012-05-05 13:07:06 -07:00
parent 9d7ec04b69
commit 86aa07d7a9

View File

@ -1241,7 +1241,7 @@ void PG::activate(ObjectStore::Transaction& t, list<Context*>& tfin,
// find out when we commit
get(); // for callback
tfin.push_back(new C_PG_ActivateCommitted(this, info.history.same_interval_since,
tfin.push_back(new C_PG_ActivateCommitted(this, last_peering_reset,
get_osdmap()->get_cluster_inst(acting[0])));
// initialize snap_trimq