storj/satellite/metabase/metabasetest
Erik van Velzen 74f4f6e765 satellite/metabase: fix copy to ancestor location
Previously copying an object to it's ancestor location (copy of copy)
broke the object and all copies.

This fixes this by calling the existing delete method rather than a
custom one when there is an existing object at the copy destination.

The check for existing object at destination has been moved to an
earlier point in FinishCopy.

metabase.DeleteObject exposes a transaction parameter so that it can be
reused within metabase.

Closes https://github.com/storj/storj/issues/4707

Uplink test at https://review.dev.storj.io/c/storj/uplink/+/7557

Change-Id: I418fc3337fa9f30146ccc1db456af168ae41c326
2022-06-28 03:53:01 +02:00
..
common.go satellite/metabase/test: extend default time diff for comparison 2022-05-23 10:24:58 +00:00
create.go satellite/metabase: fix copy to ancestor location 2022-06-28 03:53:01 +02:00
defaults.go Revert "satellite/metabase: use storj.Nonce instead []byte" 2021-10-12 15:39:54 +02:00
invalid.go satellite/metabase/metabasetest: move test utils to a separate package 2021-04-26 13:12:58 +03:00
run_test.go satellite/metabase/metabasetest: move test utils to a separate package 2021-04-26 13:12:58 +03:00
run.go metabase: support disabling serverside copy when already enabled 2022-06-24 17:56:43 +00:00
test.go satellite/metabase: drop IterateObjectsAllVersions 2022-05-26 14:12:20 +00:00