The PaxosServiceMessage version field is meant for client-coordinated
ordering of messages when switching between monitors (and is rarely
used). Do not fill it with the osdmap epoch lest it be compared to a
pgmap version, which may cause the mon to (near) indefinitely put it on
a wait queue until the pgmap version catches up.
Backport: cuttlefish
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
utime_t had_map_for;
MPGStats() : PaxosServiceMessage(MSG_PGSTATS, 0) {}
- MPGStats(const uuid_d& f, epoch_t e, utime_t had) :
- PaxosServiceMessage(MSG_PGSTATS, e), fsid(f), epoch(e), had_map_for(had) {}
+ MPGStats(const uuid_d& f, epoch_t e, utime_t had)
+ : PaxosServiceMessage(MSG_PGSTATS, 0),
+ fsid(f),
+ epoch(e),
+ had_map_for(had)
+ {}
private:
~MPGStats() {};