]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: fix rstat.rctime propagation 8779/head
authorYan, Zheng <zyan@redhat.com>
Wed, 27 Apr 2016 04:06:11 +0000 (12:06 +0800)
committerYan, Zheng <zyan@redhat.com>
Wed, 27 Apr 2016 07:34:17 +0000 (15:34 +0800)
commitbc0add2b18595a99e037302825ae3748a62377b1
tree73c5aa729f43af8669b08e37b9816bb0357c2606
parentdc0c7a7a2f27ee87fa1c4570973c180e055bc346
mds: fix rstat.rctime propagation

This patch fixes two issues.
- if (do_parent_mtime || linkunlink) is true, we need to call
  CDir::resync_accounted_rstat() before updating rstat.rctime.
- when primary_dn is false, we still need to propagate dirfrag's
  rstat to inode. Because rstat.rctime may have been changed.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/mds/MDCache.cc
src/mds/mdstypes.h