rclone/fs/accounting
Michał Matczuk eb10ac346f fs/accounting: Added StatsInfo locking in statsGroups sum function (#3844)
Without the fix we can have a race, example:

```
Write at 0x00c000432039 by goroutine 187:
  github.com/rclone/rclone/fs/accounting.(*StatsInfo).Error()
      fs/accounting/stats.go:495 +0x3f1
  github.com/rclone/rclone/fs/accounting.(*StatsInfo).Error-fm()
      fs/accounting/stats.go:477 +0x55
  github.com/rclone/rclone/fs/walk.listRwalk.func1()
      fs/walk/walk.go:162 +0xd2
  github.com/rclone/rclone/fs/walk.walk.func2()
      fs/walk/walk.go:402 +0x30f

Previous read at 0x00c000432039 by goroutine 184:
  github.com/rclone/rclone/fs/accounting.(*statsGroups).sum()
      fs/accounting/stats_groups.go:351 +0xcae
  github.com/rclone/rclone/fs/accounting.rcTransferredStats()
      fs/accounting/stats_groups.go:132 +0x1f4
```

Fixes #3844
2020-01-04 16:45:24 +00:00
..
accounting_other.go Break the fs package up into smaller parts. 2018-01-15 17:51:14 +00:00
accounting_test.go accounting: fix file handle leak on errors - fixes #3547 2019-09-19 16:20:07 +01:00
accounting_unix.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
accounting.go accounting: fix memory leak on retries operations 2019-11-19 12:11:59 +00:00
inprogress.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
stats_groups_test.go fs/accounting: add option to delete stats 2020-01-03 17:44:05 +00:00
stats_groups.go fs/accounting: Added StatsInfo locking in statsGroups sum function (#3844) 2020-01-04 16:45:24 +00:00
stats_test.go fs/accounting: add option to delete stats 2020-01-03 17:44:05 +00:00
stats.go fs/accounting: add option to delete stats 2020-01-03 17:44:05 +00:00
stringset.go accounting: don't show entries in both transferring and checking 2019-11-19 13:22:33 +00:00
token_bucket_test.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
token_bucket.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
transfer.go Fix error counter - fixes #3650 2019-11-18 14:13:02 +00:00