mirror of
https://github.com/ceph/ceph
synced 2025-03-06 16:28:28 +00:00
rgw_rados.cc: reduce scope of variable
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
parent
0a5e6af484
commit
649f0f3e7e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user