]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: fix quorum_age() regression 44018/head
authorSage Weil <sage@newdream.net>
Fri, 19 Nov 2021 00:04:48 +0000 (19:04 -0500)
committerSage Weil <sage@newdream.net>
Fri, 19 Nov 2021 15:28:20 +0000 (10:28 -0500)
commit68cfe785ccbc9ebd2a28492327142bb5878181a4
tree44f58479c6fccf15f990569d193838169eadce8c
parent1d1cd65cb94233a9fe269d960129e9df901af334
mon: fix quorum_age() regression

We need to cast this to chrono::seconds or else it will overload the int
return type.

Partially reverts 1a9aab62b615830107ee28866630f043e1a01a35: the quorum_age()
users want seconds explicitly. The status caller reverts back to chrono
types so that it can be passed to timespan_str().

Fixes: 1a9aab62b615830107ee28866630f043e1a01a35
Signed-off-by: Sage Weil <sage@newdream.net>
src/mon/Monitor.cc
src/mon/Monitor.h