mirror of
https://github.com/distribution/distribution.git
synced 2026-07-17 02:00:41 +00:00
Currently, the Azure driver always creates blobs as an AppendBlob, but in previous versions, it used to create them as BlockBlobs. There is migration logic to handle this, but it's currently inversed, so if the blob exists as a BlockBlob, we don't delete it, and get an error back from Azure: ``` RESPONSE 409: 409 The blob type is invalid for this operation. ERROR CODE: InvalidBlobType ``` Since the check is inversed, this also means that any operation against AppendBlobs does an extra delete -> create for no reason. Signed-off-by: David Marby <david@dmarby.se>