]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mds: always pass current time to MDBalancer::{hit_inode,hit_dir}
authorYan, Zheng <zyan@redhat.com>
Tue, 21 Nov 2017 08:23:20 +0000 (16:23 +0800)
committerYan, Zheng <zyan@redhat.com>
Tue, 10 Apr 2018 01:19:47 +0000 (09:19 +0800)
commit896491268f90d53775e4a76fb808fa8f65bdb513
tree8531071910f1237fa382b51078ea25062f7ef6b3
parent29e19c1d7d032dbb4fc3a06cb46ee88c5b22587f
mds: always pass current time to MDBalancer::{hit_inode,hit_dir}

There were codes that pass mdr->get_mds_stamp() to {hit_inode,hit_dir}.
The stamp can be older than 'last_decay' in decay counters,  which can
cause DecayCounter::decay() to malfunction.

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