| 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_; |
nothing calls this directly
no test coverage detected