]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: s3 object lock avoids overflow in retention date 52605/head
authorCasey Bodley <cbodley@redhat.com>
Wed, 14 Jun 2023 12:42:00 +0000 (08:42 -0400)
committerCasey Bodley <cbodley@redhat.com>
Mon, 24 Jul 2023 14:38:57 +0000 (10:38 -0400)
Fixes: https://tracker.ceph.com/issues/56993
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit dd87a0ff845549ce94b740881c614c77c1857865)

src/rgw/rgw_object_lock.cc

index 5c0119befaa10c2b17acc6abfb75bfea5f78bdce..83156cd7863c4e9ae290e95be78b5a141d673c81 100644 (file)
@@ -56,7 +56,7 @@ ceph::real_time RGWObjectLock::get_lock_until_date(const ceph::real_time& mtime)
   if (!rule_exist) {
     return ceph::real_time();
   }
-  int days = get_days();
+  int64_t days = get_days();
   if (days <= 0) {
     days = get_years()*365;
   }