storj/satellite/orders
Michal Niewrzal 3b6e1123b8 satellite/orders: fix sorting rollups before inserting
Sorting by primary key before inserting data into DB is fixed.
Earlier we were sorting input slice of BucketBandwidthRollup but then
we were putting all entries into map to rollup input data. Iteration
over map with a range loop doesn't guarantee any specific order so we
were loosing sorted order when we were creating with this map slices to
use with DB insert.

New code is also using map but when map is full its sorting map keys
separately and iterates over them to get data from map.

https://github.com/storj/storj/issues/5332

Change-Id: I5bf09489b0eecb6858bf854ab387b660124bf53f
2023-02-01 12:17:25 +00:00
..
encryptionkey_test.go satellite/orders: add factory function to encryption key 2020-11-20 11:40:15 -08:00
encryptionkey.go satellite/orders: use smaller encrypted metadata 2021-01-08 16:40:31 +00:00
endpoint_test.go satellite/metabase: move package one level higher 2021-04-21 15:54:22 +03:00
endpoint.go satellite/orders: fix sorting rollups before inserting 2023-02-01 12:17:25 +00:00
orders_test.go satellites/orders: populate egress_dead in project_bandwidth_daily_rollups 2021-10-06 16:54:49 +00:00
rollups_chore.go satellite/orders: Flush all pending bandwidth rollup writes on shutdown 2020-01-23 08:12:41 -07:00
rollups_write_cache_test.go satellite/orders: fix sorting rollups before inserting 2023-02-01 12:17:25 +00:00
rollups_write_cache.go satellite/orders: log bandwidth values we are dropping 2023-01-20 09:28:25 +00:00
service_test.go satellite/metainfo: simplifying limits code 2021-09-28 06:22:13 +00:00
service.go satellite/metainfo: RetryBeginSegmentPieces RPC implementation 2023-01-27 15:04:59 +00:00
signer_test.go satellite/metabase: move package one level higher 2021-04-21 15:54:22 +03:00
signer.go satellite: use PieceIDDeriver for derivation 2022-05-19 06:31:42 +00:00
window_endpoint_phase.go satellite/orders: 3-phase rollout 2020-08-03 17:01:42 +00:00