]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
messages/MPGStats: do not set paxos version to osdmap epoch
authorSage Weil <sage@inktank.com>
Wed, 10 Jul 2013 17:06:20 +0000 (10:06 -0700)
committerSage Weil <sage@inktank.com>
Wed, 10 Jul 2013 17:19:38 +0000 (10:19 -0700)
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>
src/messages/MPGStats.h

index 633800aad152aab0d65a8a7b46b985f53ceed61a..8c40c4e56ed3c385722641c275293a4431b08a2b 100644 (file)
@@ -27,8 +27,12 @@ public:
   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() {};