]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/MDSMonitor: check fscid exists for legacy case 42068/head
authorPatrick Donnelly <pdonnell@redhat.com>
Wed, 16 Jun 2021 16:30:41 +0000 (09:30 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 28 Jun 2021 19:47:47 +0000 (12:47 -0700)
commitd077e7f7bfefa7ea30fe15e2ff099e1ef4388293
tree9dc291d640194a9486cb9dd1d4c585ea4f41342c
parent2e1902f3a43860da461e68ebea5ef8dd48418278
mon/MDSMonitor: check fscid exists for legacy case

If a client does not have permission to see the legacy fs, the monitor
will throw an exception when looking up the mdsmap later in the code.
We need to check existence for both code paths.

Fixes: https://tracker.ceph.com/issues/51077
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 75ccd9d49c78bacf73b9e61d99a75fb455a8b85f)
src/mon/MDSMonitor.cc