storj/satellite/buckets
Michal Niewrzal 95a5cfe647 satellite/buckets: handle bucket exists better
In some rare cases when two entities are trying to create the same
bucket at the same time it's possible that we will return internal
error instead of `bucket already exists`. It's because we are not
handling correctly DB error about constraint error. This change checks
if while inserting bucket into DB we got constraint error and propagate
correct error to metainfo API.

Change-Id: Ie6fd2c943b864b4ea7d71e4a162e74dc3510e386
2023-08-23 14:40:31 +00:00
..
db_test.go satellite/accounting/tally: handle well bucket names with escape char 2023-06-21 15:04:14 +00:00
db.go satellite/buckets: handle bucket exists better 2023-08-23 14:40:31 +00:00
service_test.go satellite/buckets: tests for bucket placement config 2021-11-16 14:58:56 +02:00
service.go satellite/buckets: move Bucket definition 2023-04-13 17:55:40 -04:00