storj/satellite/metainfo
Michal Niewrzal 77afdae741 satellite/metabase: handle target pending/committed objects while move
Before we introduced objects versions internally move operation was
always failing when under target location object exists. But then we
had only single version 1 all the time. With versions different than 1
we need to check all existing objects under target location.

To be backward compatible with our API new logic looks like this:
* if there is no object under target location use source object version
as target version
* if there are only pending objects find first free (highest) version
which could be used to move object there
* if there is committed object under target location reject move
operation

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

Change-Id: I717f3e7c42470b406287d6ec335f6f057d3fc3b5
2023-01-04 08:50:51 +00:00
..
expireddeletion satellite/gc/sender: new service to send retain filters 2022-09-20 11:49:40 +00:00
piecedeletion satellite/metainfo/piecedeletion: configurable threshold 2022-10-20 16:58:05 +02:00
pointerverification satellite/metainfo: reenable piece hash verification 2021-04-12 15:12:42 -06:00
attribution_test.go all: fix deprecated ioutil commands 2022-10-11 15:27:29 +00:00
attribution.go satellite/metainfo: Use project-level attribution at bucket level 2022-06-07 17:08:50 +00:00
batch_test.go satellite/metainfo: add missing metadata validation 2022-08-23 16:56:45 +02:00
batch.go satellite/metainfo: endpoint cleanup 2021-08-26 09:52:38 +00:00
config_test.go Merge 'master' branch 2020-11-10 11:58:59 +00:00
config.go Revert "satellite/metainfo: enable metainfo.multiple-versions flag by default" 2022-12-07 19:43:20 +00:00
endpoint_bucket_test.go satellite/metainfo: ListBuckets extended with value attribution assigned to bucket 2022-07-18 18:23:50 +00:00
endpoint_bucket.go satellite/metainfo: ListBuckets extended with value attribution assigned to bucket 2022-07-18 18:23:50 +00:00
endpoint_object_test.go satellite/metabase: handle target pending/committed objects while move 2023-01-04 08:50:51 +00:00
endpoint_object.go mod: bump dependencies 2022-11-29 13:47:34 +00:00
endpoint_segment_test.go satellite/metainfo: fix types used in tests 2022-11-07 14:48:31 +01:00
endpoint_segment.go satellite/metainfo: align satellite StreamID protobuf version with metabase 2022-08-24 10:17:34 +00:00
endpoint_test.go satellite/metainfo: add missing metadata validation 2022-08-23 16:56:45 +02:00
endpoint.go satellite: use evenkit instead of evenstat/top endpoint 2022-10-24 11:45:12 +02:00
signing.go satellite/metainfo: use deterministic signing for satStreamID 2021-01-19 15:56:29 +00:00
validation_test.go satellite: use evenkit instead of evenstat/top endpoint 2022-10-24 11:45:12 +02:00
validation.go satellite/metainfo: allow list permission for GetObject and GetObjectIPs 2022-11-07 10:59:43 +00:00
version_collector_test.go all: fix deprecated ioutil commands 2022-10-11 15:27:29 +00:00
version_collector.go satellite/metainfo: add storj-downloader as a known user agent 2022-11-17 16:03:54 +00:00