]> git.apps.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)
committerPatrick Donnelly <pdonnell@redhat.com>
Wed, 24 Mar 2021 15:57:06 +0000 (08:57 -0700)
commit5596d5f019142286ef32f31f6373a4e8d8e586a0
tree1183afa897ae7b66323e77712211d2670f02848d
parent6577703b36a7ccd0e37c32b6de8d7cac87970a25
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>
(cherry picked from commit 85e73c7c7509cefbc50902436aca07a9a333eb23)
src/mds/Server.cc