storj/satellite/accounting
Michał Niewrzał 4be84c3a6c satellite/accounting: fix how we put segments usage into cache
We had two problems here. First was how we were handling
errors message from GetProjectSegmentUsage. We were always
returning error, even for ErrKeyNotFound which should be used
to refresh value in cache and not propagated out of method.
Second, we were using wrong value to update cache. We used
current value from cache which obviously it's not what we intend.

Fixes https://github.com/storj/storj/issues/4389

Change-Id: I4d7ca7a1a0a119587db6a5041b44319102ef64f8
2022-01-24 11:57:50 +00:00
..
live satellite/metainfo: add segment limit validation, caching 2022-01-10 14:33:26 +02:00
nodetally private/testplanet: move Metabase outside Metainfo for satellite 2021-09-09 07:15:51 +00:00
projectbwcleanup satellite/accounting: fix as of system interval value for some tests 2021-06-29 10:16:48 +00:00
rollup satellite/{audit, accounting}: use reputation store in tests 2021-07-28 13:21:55 -04:00
rolluparchive satellites/orders: populate egress_dead in project_bandwidth_daily_rollups 2021-10-06 16:54:49 +00:00
tally satellite/accounting/tally: make tests faster 2021-09-21 17:18:37 +03:00
billing_test.go satellite: use segment count for billing 2021-10-27 19:21:50 +00:00
bucketstats.go satellite/accounting/tally: use objects iterator instead metaloop 2021-07-20 15:52:18 +00:00
bucketusage.go satellite/accounting/tally: use objects iterator instead metaloop 2021-07-20 15:52:18 +00:00
common.go all: fix error naming 2021-04-29 15:38:21 +03:00
db_test.go satellite/accounting/tally: use objects iterator instead metaloop 2021-07-20 15:52:18 +00:00
db.go satellite/metainfo: add segment limit validation, caching 2022-01-10 14:33:26 +02:00
projectlimitcache_test.go satellite/accounting: expose project segment limit 2021-12-08 11:27:21 +00:00
projectlimitcache.go satellite/accounting: expose project segment limit 2021-12-08 11:27:21 +00:00
projectusage_test.go satellite/accounting: fix how we put segments usage into cache 2022-01-24 11:57:50 +00:00
projectusage.go satellite/accounting: fix how we put segments usage into cache 2022-01-24 11:57:50 +00:00