]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: fix quorum_age() regression 43698/head
authorSage Weil <sage@newdream.net>
Fri, 19 Nov 2021 00:04:48 +0000 (19:04 -0500)
committerCory Snyder <csnyder@iland.com>
Fri, 7 Jan 2022 10:24:48 +0000 (05:24 -0500)
commit147979a4e2f4a9a6dfd0a35338a4371a73419618
tree947ec9c366b9dc49b38b3e6a45062d18b3fa700b
parente518f0808a924aae4666c77fb054285633c8f214
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>
(cherry picked from commit 68cfe785ccbc9ebd2a28492327142bb5878181a4)
src/mon/Monitor.cc
src/mon/Monitor.h