| 993 | } |
| 994 | |
| 995 | Status StageBlock(Blobs::BlockBlobClient* block_blob_client, const std::string& id, |
| 996 | Core::IO::MemoryBodyStream& content) { |
| 997 | try { |
| 998 | block_blob_client->StageBlock(id, content); |
| 999 | } catch (const Core::RequestFailedException& exception) { |
| 1000 | return ExceptionToStatus( |
| 1001 | exception, "StageBlock failed for '", block_blob_client->GetUrl(), |
| 1002 | "' new_block_id: '", id, |
| 1003 | "'. Staging new blocks is fundamental to streaming writes to blob storage."); |
| 1004 | } |
| 1005 | |
| 1006 | return Status::OK(); |
| 1007 | } |
| 1008 | |
| 1009 | // Usually if the first page is empty it means there are no results. This was assumed in |
| 1010 | // several places in AzureFilesystem. The Azure docs do not guarantee this and we have |
no test coverage detected