]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: fix Locker::calc_new_client_ranges() 15440/head
authorYan, Zheng <zyan@redhat.com>
Sat, 3 Jun 2017 04:39:23 +0000 (12:39 +0800)
committerYan, Zheng <zyan@redhat.com>
Mon, 5 Jun 2017 03:03:58 +0000 (11:03 +0800)
update 'max_increased' when adding new client writable range

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/mds/Locker.cc

index e0c6595badd5f446cf539d5b09451728f19c4424..6cb9a73511130e643d1c2ee69cb51db1007befab 100644 (file)
@@ -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;
       }