rclone/fs/accounting
Benjamin Legrand 8a6fc8535d accounting: fix global error acounting
fs.CountError is called when an error is encountered. The method was
calling GlobalStats().Error(err) which incremented the error at the
global stats level. This led to calls to core/stats with group= filter
returning an error count of 0 even if errors actually occured.

This change requires the context to be provided when calling
fs.CountError. Doing so, we can retrieve the correct StatsInfo to
increment the errors from.

Fixes #5865
2024-09-30 17:20:42 +01:00
..
accounting.go accounting: fix global error acounting 2024-09-30 17:20:42 +01:00
accounting_other.go build: remove build constraint syntax for go 1.16 and older 2024-04-18 16:53:55 +02:00
accounting_test.go Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
accounting_unix.go accounting: write the current bwlimit to the log on SIGUSR2 2024-09-26 18:01:18 +01:00
inprogress.go fs: deglobalise the config #4685 2020-11-26 16:40:12 +00:00
prometheus.go stats: fix race between ResetCounters and stopAverageLoop called from time.AfterFunc 2024-01-17 10:23:50 +00:00
stats.go accounting: fix race detected by the race detector 2024-08-14 21:13:09 +01:00
stats_groups.go accounting: fix creating of global stats ignoring the config 2024-07-15 11:09:54 +01:00
stats_groups_test.go accounting: fix global error acounting 2024-09-30 17:20:42 +01:00
stats_test.go stats: fix race between ResetCounters and stopAverageLoop called from time.AfterFunc 2024-01-17 10:23:50 +00:00
token_bucket.go accounting: fix wrong message on SIGUSR2 to enable/disable bwlimit 2024-09-26 17:53:58 +01:00
token_bucket_test.go Use binary prefixes for size and rate units 2021-04-27 02:25:52 +03:00
tpslimit.go accounting: factor --tpslimit code into accounting from fshttp 2021-01-08 10:29:57 +00:00
tpslimit_test.go fs/accounting: fix occasionally failing test on macOS 2021-02-07 14:59:53 +00:00
transfer.go rc: add srcFs and dstFs to core/stats and core/transferred stats 2024-02-02 11:43:10 +00:00
transfer_test.go rc: add srcFs and dstFs to core/stats and core/transferred stats 2024-02-02 11:43:10 +00:00
transfermap.go rc: add srcFs and dstFs to core/stats and core/transferred stats 2024-02-02 11:43:10 +00:00