mirror of
https://github.com/ceph/ceph
synced 2024-12-27 14:03:25 +00:00
mon/PGMap: make generated test instances obey new invariant
As of 091809b814
we keep an osd_map epoch
for any osd_stat update, and assert as much.
Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
parent
7efbebe20f
commit
92a60a0584
@ -152,6 +152,7 @@ void PGMap::Incremental::generate_test_instances(list<PGMap::Incremental*>& o)
|
||||
o.back()->version = 2;
|
||||
o.back()->pg_stat_updates[pg_t(1,2,3)] = pg_stat_t();
|
||||
o.back()->osd_stat_updates[5] = osd_stat_t();
|
||||
o.back()->osd_epochs[5] = 12;
|
||||
o.push_back(new Incremental);
|
||||
o.back()->version = 3;
|
||||
o.back()->osdmap_epoch = 1;
|
||||
@ -160,6 +161,7 @@ void PGMap::Incremental::generate_test_instances(list<PGMap::Incremental*>& o)
|
||||
o.back()->nearfull_ratio = .3;
|
||||
o.back()->pg_stat_updates[pg_t(4,5,6)] = pg_stat_t();
|
||||
o.back()->osd_stat_updates[6] = osd_stat_t();
|
||||
o.back()->osd_epochs[6] = 12;
|
||||
o.back()->pg_remove.insert(pg_t(1,2,3));
|
||||
o.back()->osd_stat_rm.insert(5);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user