]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: dump tree '/' when the path is empty
authorXiubo Li <xiubli@redhat.com>
Fri, 24 Dec 2021 04:50:23 +0000 (12:50 +0800)
committerXiubo Li <xiubli@redhat.com>
Tue, 18 Jan 2022 01:51:50 +0000 (09:51 +0800)
commitc12ba5764f55242e36e4b1049bede7c12d529f43
tree5abbdbbf9a049a6c4b210e4020179ab60e4255e2
parent442ade23f8737352c1f3750a56e1357f8df8b980
mds: dump tree '/' when the path is empty

The `get subtrees` will return the path '' for the '0x1', and if
we pass '' to the `dump tree ''` command, the MDS will crash.

Fixes: https://tracker.ceph.com/issues/53726
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit cc80cea0db697ceec7a8c4d5dacc4840e661834e)
src/mds/MDSRank.cc