]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw:lc: using midnight time to check obj expiration 17824/head
authorlu.shasha <lu.shasha@eisoo.com>
Wed, 20 Sep 2017 03:15:00 +0000 (11:15 +0800)
committerlu.shasha <lu.shasha@eisoo.com>
Mon, 9 Oct 2017 06:31:15 +0000 (14:31 +0800)
commit4a759c9aaae163940445836ac647d1db85f186c2
tree7c834274eac844d9712769bbeb77d447aa82b2c3
parent45216cc64e8dc74974dfbd65bc710c99b564db4c
rgw:lc: using midnight time to check obj expiration

Amazon S3 calculates the expiration time by adding the number of days specified in the rule to the object creation time and rounding the resulting time to the next day midnight.
So rgw should using the rounding down midnight time to compare with the object creation time to check obj expiration.

Fixes: http://tracker.ceph.com/issues/21533
Signed-off-by: Shasha Lu <lu.shasha@eisoo.com>
src/include/utime.h
src/rgw/rgw_lc.cc
src/rgw/rgw_lc.h