]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: calculate failed_since relative to message receive time
authorSage Weil <sage@inktank.com>
Thu, 15 Nov 2012 01:00:57 +0000 (17:00 -0800)
committerSage Weil <sage@inktank.com>
Thu, 15 Nov 2012 01:00:57 +0000 (17:00 -0800)
commitef4e4c8287077e33f17c3b4f3848d1db395126d2
treeb53e15c37bf563fd88e45e301589089592c8fac5
parent9c31d09f591ad7b8ead1e78c9eeb7d89db058bee
mon: calculate failed_since relative to message receive time

Instead of looking at the current time we process the message, look at the
receive time.  This gives us a more real failure time given that messages
may be requeued.

It doesn't solve the problem when messages are forwarded between monitors
due to an election, but that's ok; this is still a net improvement.

Signed-off-by: Sage Weil <sage@inktank.com>
src/mon/OSDMonitor.cc