]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: dynamically adjust priority of committing dirfrags 1683/head
authorYan, Zheng <zheng.z.yan@intel.com>
Wed, 16 Apr 2014 02:53:01 +0000 (10:53 +0800)
committerYan, Zheng <zheng.z.yan@intel.com>
Wed, 16 Apr 2014 07:11:38 +0000 (15:11 +0800)
commit924064f83b7fb5d4f0961ee712d410ed1855cba0
tree52a45f2ad0e60cfa0a61175cb4d07f03a4d75719
parent908fa5edccbc39a29352cf7aebdd99cca1b052ff
mds: dynamically adjust priority of committing dirfrags

Adjust priority of committing dirfrags according to number of
expiring log segments. The more expiring log segments, the higher
priority. Because it mean MDS does not trim log segments quickly
enough.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
src/mds/CDir.cc
src/mds/CDir.h
src/mds/LogSegment.h
src/mds/MDLog.cc
src/mds/MDLog.h
src/mds/journal.cc