]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: fix negative dirstat assertion
authorYan, Zheng <zheng.z.yan@intel.com>
Wed, 26 Mar 2014 02:15:15 +0000 (10:15 +0800)
committerYan, Zheng <zheng.z.yan@intel.com>
Fri, 28 Mar 2014 18:08:14 +0000 (02:08 +0800)
commit34ef91a2790eaee6afefdc2e140effde620bd76b
tree901957f1479a7fae919a2f01bfd2785c4341974a
parentce936161694e09fec23a4a71ef5a9e5b065c837e
mds: fix negative dirstat assertion

When splitting dirfrag, delta dirstat is always added to the first new
dirfrag. Before the delta dirstat is propagated to inode, unlinking file
from the rest dirfrags can cause nagtive inode dirstat.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
src/mds/MDCache.cc