| 953 | }; |
| 954 | |
| 955 | Status CreateEmptyBlockBlob(const Blobs::BlockBlobClient& block_blob_client) { |
| 956 | try { |
| 957 | block_blob_client.UploadFrom(nullptr, 0); |
| 958 | } catch (const Core::RequestFailedException& exception) { |
| 959 | return ExceptionToStatus( |
| 960 | exception, "UploadFrom failed for '", block_blob_client.GetUrl(), |
| 961 | "'. There is no existing blob at this location or the existing blob must be " |
| 962 | "replaced so ObjectAppendStream must create a new empty block blob."); |
| 963 | } |
| 964 | return Status::OK(); |
| 965 | } |
| 966 | |
| 967 | Result<Blobs::Models::GetBlockListResult> GetBlockList( |
| 968 | std::shared_ptr<Blobs::BlockBlobClient> block_blob_client) { |
no test coverage detected