mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 02:00:56 +00:00
refactor(lcnode): [hybrid cloud] lc scanner skip trash dir #22797969
Signed-off-by: zhaochenyang <zhaochenyang@oppo.com>
This commit is contained in:
parent
2c0400ffe5
commit
8092937450
@ -50,6 +50,7 @@ const (
|
||||
maxLcNodeTaskCountLimit = 20
|
||||
defaultDelayDelMinute = 1440 // default retention min(1 day) of old eks after migration
|
||||
MaxSizePutOnce = int64(1) << 23 // 8MB
|
||||
DirTrashSkip = ".Trash"
|
||||
|
||||
defaultAllocRetryInterval = 100
|
||||
defaultWriteRetryInterval = 100
|
||||
|
||||
@ -588,6 +588,11 @@ func expired(inode *proto.InodeInfo, now int64, days *int, date *time.Time) bool
|
||||
func (s *LcScanner) handleDirLimitDepthFirst(dentry *proto.ScanDentry) {
|
||||
log.LogInfof("handleDirLimitDepthFirst dentry: %+v, dirChan.Len: %v", dentry, s.dirChan.Len())
|
||||
|
||||
if dentry.Name == DirTrashSkip {
|
||||
log.LogInfof("handleDirLimitDepthFirst skip read dir %+v", dentry)
|
||||
return
|
||||
}
|
||||
|
||||
marker := ""
|
||||
done := false
|
||||
for !done {
|
||||
@ -661,6 +666,11 @@ func (s *LcScanner) handleDirLimitDepthFirst(dentry *proto.ScanDentry) {
|
||||
func (s *LcScanner) handleDirLimitBreadthFirst(dentry *proto.ScanDentry) {
|
||||
log.LogInfof("handleDirLimitBreadthFirst dentry: %+v, dirChan.Len: %v", dentry, s.dirChan.Len())
|
||||
|
||||
if dentry.Name == DirTrashSkip {
|
||||
log.LogInfof("handleDirLimitBreadthFirst skip read dir %+v", dentry)
|
||||
return
|
||||
}
|
||||
|
||||
marker := ""
|
||||
done := false
|
||||
for !done {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user