]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/LogMonitor: fix crash when cluster log file is not writeable 42528/head
authorSage Weil <sage@newdream.net>
Wed, 28 Jul 2021 15:45:19 +0000 (11:45 -0400)
committerSage Weil <sage@newdream.net>
Wed, 28 Jul 2021 15:45:19 +0000 (11:45 -0400)
commitaddbb8997d5f1fc85812d814ab478fbcb0773b7a
tree50230f0ddab721458b929e60559cd997a28f0a45
parentd09a04617e50c96691fe379f34c1786212ae59ac
mon/LogMonitor: fix crash when cluster log file is not writeable

If we are in this block, then p == channel_fds.end() and p->first is not
valid.

Also, no need to populate channel_fds with an fd of -1.

Fixes: https://tracker.ceph.com/issues/51816
Signed-off-by: Sage Weil <sage@newdream.net>
src/mon/LogMonitor.cc