From: Danny Al-Gaaf Date: Thu, 5 Mar 2015 05:21:35 +0000 (+0100) Subject: rgw_rados.cc: reduce scope of variable X-Git-Tag: v9.0.0~186^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=649f0f3e7e2bfa569804fbe9e10d38d7b15bca85;p=ceph.git rgw_rados.cc: reduce scope of variable Signed-off-by: Danny Al-Gaaf --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 090503da7c75..cb2ed4bd049d 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -4914,7 +4914,6 @@ int RGWRados::Object::Read::prepare(int64_t *pofs, int64_t *pend) CephContext *cct = store->ctx(); bufferlist etag; - time_t ctime; off_t ofs = 0; off_t end = -1; @@ -4950,7 +4949,7 @@ int RGWRados::Object::Read::prepare(int64_t *pofs, int64_t *pend) /* Convert all times go GMT to make them compatible */ if (conds.mod_ptr || conds.unmod_ptr) { - ctime = astate->mtime; + time_t ctime = astate->mtime; if (conds.mod_ptr) { ldout(cct, 10) << "If-Modified-Since: " << *conds.mod_ptr << " Last-Modified: " << ctime << dendl;