From 649f0f3e7e2bfa569804fbe9e10d38d7b15bca85 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Thu, 5 Mar 2015 06:21:35 +0100 Subject: [PATCH] rgw_rados.cc: reduce scope of variable Signed-off-by: Danny Al-Gaaf --- src/rgw/rgw_rados.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 090503da7c7..cb2ed4bd049 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; -- 2.47.3