]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix response of delete expired objects 6228/head
authorYuan Zhou <yuan.zhou@intel.com>
Wed, 14 Oct 2015 07:54:27 +0000 (15:54 +0800)
committerYuan Zhou <yuan.zhou@intel.com>
Wed, 14 Oct 2015 07:54:27 +0000 (15:54 +0800)
commitfee71447b066104e4f0dccce436192d95827ddcf
treebebd9f8a91c0005ef2d3dbbacdfe1b0a3b8a9c3d
parente7b49f582b9ee058309c0c38461830216119d7d0
rgw: fix response of delete expired objects

GET/HEAD requests to the expired-but-not-yet-deleted objects will
'404 Not Found' currently.

Swift's response to a DELETE of an expired object is 404; however,
the object does get deleted.

This patch fixes this issue by checking the expire time in Swift DELETE
op, delete the object with a 404 http code.

Fixes #13469

Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
src/rgw/rgw_op.cc
src/rgw/rgw_op.h
src/rgw/rgw_rest_swift.h