]> git-server-git.apps.pok.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>
Wed, 5 Jan 2022 09:08:20 +0000 (17:08 +0800)
commitcc80cea0db697ceec7a8c4d5dacc4840e661834e
treea4bd1e736149e41b90416bb5aa9f938e7da01a13
parent7de6d81f0423274607c5e662e92e7cfaca22b9eb
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>
src/mds/MDSRank.cc