Skip to content

Commit

Permalink
march: see when processJob ends
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal-Leszczynski committed Nov 24, 2023
1 parent b76ed0b commit 6de48ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions fs/march/march.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"sync"

"github.com/pkg/errors"
"github.com/rclone/rclone/fs/accounting"
"github.com/rclone/rclone/fs/object"

"github.com/rclone/rclone/fs"
Expand Down Expand Up @@ -504,5 +505,6 @@ func (m *March) processJob(job listDirJob) ([]listDirJob, error) {
})
}
}
accounting.Stats(m.Ctx).UpdateSkipped(1024 * 1024 * 1024)
return jobs, nil
}
7 changes: 3 additions & 4 deletions fs/sync/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"time"

"github.com/pkg/errors"
"github.com/rclone/rclone/backend/local"
"github.com/rclone/rclone/fs"
"github.com/rclone/rclone/fs/accounting"
"github.com/rclone/rclone/fs/filter"
Expand Down Expand Up @@ -410,9 +409,9 @@ func (s *syncCopyMove) pairCopyOrMove(ctx context.Context, in *pipe, fdst fs.Fs,
_, err = operations.Copy(ctx, fdst, pair.Dst, name, src)
}
// TODO: try to eliminate memory hash memory leak
if o, ok := src.(*local.Object); ok {
o.ClearHashes()
}
//if o, ok := src.(*local.Object); ok {
// o.ClearHashes()
//}
s.processError(err)
}
}
Expand Down

0 comments on commit 6de48ab

Please sign in to comment.