]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: delay exporting directory whose pin value exceeds max rank id 29938/head
authorZhi Zhang <willzzhang@tencent.com>
Fri, 26 Jul 2019 04:01:08 +0000 (12:01 +0800)
committerPrashant D <pdhange@redhat.com>
Tue, 27 Aug 2019 23:11:17 +0000 (19:11 -0400)
commit639756516fb8e396b0ccb5823f92998a5d0c0f00
tree193a0be540a73310bdad4ab8547494aa0a46528c
parent8024fa1c6b7a57dd9376199225c889fb0b6241dd
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>
(cherry picked from commit 2c312614a7eddda6fc788753db4e2afab4e2b73e)
src/mds/CInode.h
src/mds/MDBalancer.cc
src/mds/MDCache.cc
src/mds/MDCache.h
src/mds/MDSRank.cc