]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix if-modified-since boundary
authorYehuda Sadeh <yehuda@redhat.com>
Wed, 25 Mar 2015 03:24:55 +0000 (20:24 -0700)
committerCasey Bodley <cbodley@redhat.com>
Fri, 10 Jun 2016 13:00:04 +0000 (09:00 -0400)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit 27946e8ba4bc5dbfec2da319fa23266d5885d655)

src/rgw/rgw_rados.cc

index 1cafe180d043e6bc839659c00e095582a32f8d6a..5936bb3090817aa3e15b62a1cd07142e153e9ca2 100644 (file)
@@ -5464,7 +5464,7 @@ int RGWRados::Object::Read::prepare(int64_t *pofs, int64_t *pend)
 
     if (conds.mod_ptr) {
       ldout(cct, 10) << "If-Modified-Since: " << *conds.mod_ptr << " Last-Modified: " << ctime << dendl;
-      if (ctime < *conds.mod_ptr) {
+      if (ctime <= *conds.mod_ptr) {
         return -ERR_NOT_MODIFIED;
       }
     }