From: Danny Al-Gaaf Date: Tue, 14 May 2013 18:02:06 +0000 (+0200) Subject: mds/Locker.cc: reduce scope of forced_change_max X-Git-Tag: v0.64~119^2~22 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ce84a226d321458d4afca6f4defd742c7f209f11;p=ceph.git mds/Locker.cc: reduce scope of forced_change_max Signed-off-by: Danny Al-Gaaf --- diff --git a/src/mds/Locker.cc b/src/mds/Locker.cc index c5ddb92d93e3..4a23e0bc47fc 100644 --- a/src/mds/Locker.cc +++ b/src/mds/Locker.cc @@ -2736,11 +2736,11 @@ bool Locker::_do_cap_update(CInode *in, Capability *cap, // increase or zero max_size? uint64_t size = m->get_size(); bool change_max = false; - bool forced_change_max = false; uint64_t old_max = latest->client_ranges.count(client) ? latest->client_ranges[client].range.last : 0; uint64_t new_max = old_max; if (in->is_file()) { + bool forced_change_max = false; dout(20) << "inode is file" << dendl; if (cap && ((cap->issued() | cap->wanted()) & CEPH_CAP_ANY_FILE_WR)) { dout(20) << "client has write caps; m->get_max_size="