]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr: fix crashable DaemonStateIndex::get calls 18412/head
authorJohn Spray <john.spray@redhat.com>
Sat, 23 Sep 2017 17:21:47 +0000 (13:21 -0400)
committerKarol Mroz <kmroz@suse.de>
Fri, 20 Oct 2017 01:13:46 +0000 (18:13 -0700)
commit8f87fa2d3af44840a3044cd736a2f8da0b602b07
tree491b6d76ab3bf0516abee7d35777618e6786de59
parent5a4850c8c66b75d02fc2597e1ca744c6b0303836
mgr: fix crashable DaemonStateIndex::get calls

This function was recently fixed to return null
on missing entries: handle that properly.

Fixes: http://tracker.ceph.com/issues/17737
Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit ade4827d86bb2bc79466a2da040475651c2aae0d)
src/mgr/PyModules.cc
src/mgr/PyModules.h