Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
lu.shasha
committed
Sep 30, 2017
1 parent
45216cc
commit 0c57b20
Showing
2 changed files
with
22 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters