From: Yehuda Sadeh Date: Wed, 25 Mar 2015 03:24:55 +0000 (-0700) Subject: rgw: fix if-modified-since boundary X-Git-Tag: v0.94.8~33^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7319d76b269d541249124f46890f1b04279ba2ea;p=ceph.git rgw: fix if-modified-since boundary Signed-off-by: Yehuda Sadeh (cherry picked from commit 27946e8ba4bc5dbfec2da319fa23266d5885d655) --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 1cafe180d04..5936bb30908 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -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; } }