mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
mds: fix _rollback_repair_dir()
_rollback_repair_dir() may increase dirfrag's rfiles/rsubdirs twice. Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
This commit is contained in:
parent
da17394941
commit
6e3501bd31
@ -6738,10 +6738,8 @@ void _rollback_repair_dir(MutationRef& mut, CDir *dir, rename_rollback::drec &r,
|
||||
|
||||
if (isdir) {
|
||||
pf->fragstat.nsubdirs += linkunlink;
|
||||
pf->rstat.rsubdirs += linkunlink;
|
||||
} else {
|
||||
pf->fragstat.nfiles += linkunlink;
|
||||
pf->rstat.rfiles += linkunlink;
|
||||
}
|
||||
if (r.ino) {
|
||||
pf->rstat.rbytes += linkunlink * rstat.rbytes;
|
||||
|
Loading…
Reference in New Issue
Block a user