]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: rgw file fix bug of rgw_lookup can not exact match file name
authorMin Chen <chenmin@xsky.com>
Fri, 19 Aug 2016 05:02:50 +0000 (01:02 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Wed, 5 Oct 2016 18:25:43 +0000 (14:25 -0400)
commitc53992856d6058b71bed55337c3830dbaefb6823
treeda8fabac7044fe7f71b69d8b5746a248f360da5d
parent9f5c7377143c56b169a62a96dba5c6ff800e4d5c
rgw: rgw file fix bug of rgw_lookup can not exact match file name

bug reproduce steps:
in nfs-client (connect to nfs-ganesha server):
1. mv file file.rename
2. stat file // get file attrs, not return with -ENOENT

the reason is that:
RGWStatLeafRequest does not exact match the file name,
just take file name as a prefix filter

Signed-off-by: Min Chen <chenmin@xsky.com>
(cherry picked from commit 9d813bafc8e197507457c58ab4f365ccdb7f3589)

Fixes: http://tracker.ceph.com/issues/17326
src/rgw/rgw_file.cc
src/rgw/rgw_file.h