]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mds: delay exporting directory whose pin value exceeds max rank id
authorZhi Zhang <willzzhang@tencent.com>
Fri, 26 Jul 2019 04:01:08 +0000 (12:01 +0800)
committerZhi Zhang <willzzhang@tencent.com>
Fri, 26 Jul 2019 04:01:08 +0000 (12:01 +0800)
commit2c312614a7eddda6fc788753db4e2afab4e2b73e
tree3f63b619400ac658dc831e10334693fe1448f50c
parentbeb0c343b3f18297b09ddc61b0c2e0156f109455
mds: delay exporting directory whose pin value exceeds max rank id

Currently we allow to set ceph.dir.pin value to any number. If it is
larger than current max id, this dir will stay in export_pin_queue all
the time and every tick migrator will try to handle it but never export
it successfully.

Fixes: http://tracker.ceph.com/issues/40603
Signed-off-by: Zhi Zhang <zhangz.david@outlook.com>
src/mds/CInode.h
src/mds/MDBalancer.cc
src/mds/MDCache.cc
src/mds/MDCache.h
src/mds/MDSRank.cc