filepath::depth() may call parse_bits(), which modifies mutable member
'bits'. dump_ops_in_flight asok command prints filepath without holding
mds_lock. So multiple threads may call parse_bits() at the same time.
Fixes: http://tracker.ceph.com/issues/26894
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
{
if (path.get_ino()) {
out << '#' << path.get_ino();
- if (path.depth())
+ if (path.length())
out << '/';
}
return out << path.get_path();