95a5cfe647
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 |
||
---|---|---|
.. | ||
db_test.go | ||
db.go | ||
service_test.go | ||
service.go |