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

Method HandleUploadOutcome

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

Source from the content-addressed store, hash-verified

1368 }
1369
1370 static void HandleUploadOutcome(const std::shared_ptr<UploadState>& state,
1371 const Status& status) {
1372 std::unique_lock<std::mutex> lock(state->mutex);
1373 if (!status.ok()) {
1374 state->status &= status;
1375 }
1376 // Notify completion
1377 if (--state->blocks_in_progress == 0) {
1378 auto fut = state->pending_blocks_completed;
1379 lock.unlock();
1380 fut.MarkFinished(state->status);
1381 }
1382 }
1383
1384 std::shared_ptr<Blobs::BlockBlobClient> block_blob_client_;
1385 const io::IOContext io_context_;

Callers

nothing calls this directly

Calls 2

okMethod · 0.45
MarkFinishedMethod · 0.45

Tested by

no test coverage detected