]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/LogMonitor: do not crash on log sub w/ no messages 21515/head
authorSage Weil <sage@redhat.com>
Tue, 17 Apr 2018 11:44:56 +0000 (06:44 -0500)
committerKefu Chai <kchai@redhat.com>
Thu, 19 Apr 2018 09:08:24 +0000 (17:08 +0800)
commit5bbc2355f3bc3b6a90167beaa8276e9670bff61e
tree60c1eb9b4db2693cbe6b43a60afffe8ba8d53bfe
parentebcbbfb2866af4e80217cf664373080d8864c207
mon/LogMonitor: do not crash on log sub w/ no messages

If sv == 0, we will fail to fetch a value and assert out.  Skip the loop
in that case.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 9cc7e451c5cbc6961cf5a12e8d7fc335ae130b71)
src/mon/LogMonitor.cc