storj/satellite
Ivan Fraixedes d5a60aec58
satellite/metainfo: Delete segments in reverse order
Change DeleteObjectPieces for deleting the segments' pointers of an
object in a reverse order.

Last segment: L
N: total number of segments

Deleting in reverse order is: L, n-1 to 0

Deleting in reverse order makes BeginDeleteObject usable to delete
partially uploaded objects that were interrupted (e.g. upload
cancellation).

With this change, the uplink upload cancellation, can be changed to use
BeginDeleteObject to cleanup already uploaded segments without having to
retrieve orders and dial every single node which stored a piece.

Ticket: https://storjlabs.atlassian.net/browse/V3-3525
Change-Id: Ieca6fd3801c4b71671811cb5f08a99d5146928a6
2020-01-24 16:05:12 +02:00
..
accounting satellite: use require.WithinDuration 2020-01-21 19:43:53 +02:00
attribution satellite/satellitedb/satellitedbtest: pass ctx as an argument 2020-01-20 16:35:42 +02:00
audit satellite/metainfo: move RS configuration to satellite 2020-01-22 09:33:53 +00:00
console satellite/metainfo: Rate limiting - API requests 2020-01-21 14:25:04 +00:00
contact satellite/contact; storagenode/preflight: add clock check on startup for storagenode 2020-01-15 15:35:26 +00:00
dbcleanup common: separate repository 2019-12-27 14:11:15 +02:00
downtime satellite: use require.WithinDuration 2020-01-21 19:43:53 +02:00
gc lib/uplinkc: fix test flakiness by setting MaxTimeSkew 2020-01-20 12:44:42 +00:00
gracefulexit satellite/metainfo: move RS configuration to satellite 2020-01-22 09:33:53 +00:00
inspector uplink: move to storj.io/uplink (#3746) 2020-01-08 15:40:19 +02:00
mailservice satellite/mailservice: move logging to send rendered async to cover template parsing (#3654) 2019-11-28 12:29:48 +02:00
marketingweb common: separate repository 2019-12-27 14:11:15 +02:00
metainfo satellite/metainfo: Delete segments in reverse order 2020-01-24 16:05:12 +02:00
metrics satellite/metainfo: move RS configuration to satellite 2020-01-22 09:33:53 +00:00
nodestats satellite: remove UptimeReputation configs from codebase 2020-01-08 18:54:15 +00:00
orders satellite/satellitedb: fix issue with shared memory on range for bucket rollups 2020-01-23 21:57:02 -07:00
overlay satellite: use require.WithinDuration 2020-01-21 19:43:53 +02:00
payments satellite/satellitedb/satellitedbtest: pass ctx as an argument 2020-01-20 16:35:42 +02:00
referrals common: separate repository 2019-12-27 14:11:15 +02:00
repair satellite/metainfo: move RS configuration to satellite 2020-01-22 09:33:53 +00:00
rewards common: separate repository 2019-12-27 14:11:15 +02:00
satellitedb satellite/satellitedb: fix issue with shared memory on range for bucket rollups 2020-01-23 21:57:02 -07:00
vouchers common: separate repository 2019-12-27 14:11:15 +02:00
api.go satellite/orders: Flush all pending bandwidth rollup writes on shutdown 2020-01-23 08:12:41 -07:00
core.go satellite/orders: Flush all pending bandwidth rollup writes on shutdown 2020-01-23 08:12:41 -07:00
peer.go private/testplanet: flatten migration for running tests 2020-01-22 15:09:11 +00:00
repairer.go satellite/orders: Flush all pending bandwidth rollup writes on shutdown 2020-01-23 08:12:41 -07:00