]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: fix removexattr logic when there aren't any
authorJeff Layton <jlayton@redhat.com>
Tue, 16 Mar 2021 16:22:56 +0000 (12:22 -0400)
committerJeff Layton <jlayton@redhat.com>
Tue, 16 Mar 2021 17:17:09 +0000 (13:17 -0400)
commit85e73c7c7509cefbc50902436aca07a9a333eb23
tree41cbff91e98fc44c0b2d7628d3a6a1332ad61b7c
parentfcf8fbcb6ea6674c99de31ba0f3083fc7ca44fd9
mds: fix removexattr logic when there aren't any

The MDS currently returns success on a removexattr if the xattr map is
completely empty. Fix the subtle logic bug and have it return -ENODATA
in that case.

Fixes: https://tracker.ceph.com/issues/49833
Signed-off-by: Jeff Layton <jlayton@redhat.com>
src/mds/Server.cc