MCPcopy Create free account
hub / github.com/apache/arrow / CreateEmptyBlockBlob

Function CreateEmptyBlockBlob

cpp/src/arrow/filesystem/azurefs.cc:955–965  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

953};
954
955Status 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
967Result<Blobs::Models::GetBlockListResult> GetBlockList(
968 std::shared_ptr<Blobs::BlockBlobClient> block_blob_client) {

Callers 1

InitMethod · 0.85

Calls 2

ExceptionToStatusFunction · 0.85
OKFunction · 0.50

Tested by

no test coverage detected