From 75ce2a94f268e1c68658e75aa62157d6407887ce Mon Sep 17 00:00:00 2001 From: "Yan, Zheng" Date: Sat, 3 Jun 2017 12:39:23 +0800 Subject: [PATCH] mds: fix Locker::calc_new_client_ranges() update 'max_increased' when adding new client writable range Signed-off-by: "Yan, Zheng" --- src/mds/Locker.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mds/Locker.cc b/src/mds/Locker.cc index e0c6595badd5f..6cb9a73511130 100644 --- a/src/mds/Locker.cc +++ b/src/mds/Locker.cc @@ -2270,6 +2270,7 @@ void Locker::calc_new_client_ranges(CInode *in, uint64_t size, nr.range.last = MAX(ms, oldr.range.last); nr.follows = oldr.follows; } else { + *max_increased = true; nr.range.last = ms; nr.follows = in->first - 1; } -- 2.39.5