Open mniewrzal opened 2 years ago
Commented by Michal Niewrzal
fix for deleting bucket https://review.dev.storj.io/c/storj/storj/+/5090
Commented by Michal Niewrzal
we still need to fix other places where we are deleting objects + segments
Commented by Michal Niewrzal
File delete.go from metabase package contains methods for deleting. Most of methods returns DeleteObjectResult with contains array of objects and segments that were deleted. We need to refactor it to return only array of deleted objects and add give ability to delete segment pieces in a way like in https://review.dev.storj.io/c/storj/storj/+/5090 with DeletePieces func as an option for the method.
Commented by Michal Niewrzal
fix for deleting objects https://review.dev.storj.io/c/storj/storj/+/5294
Object deletes need to use bounded memory regardless of the amount of segments per object. The project Ivan was deleting had 9,459,183 segments, but just 1,178 objects.
Migrated from https://storjlabs.atlassian.net/browse/PG-234