Skip to content

Commit

Permalink
Fix compile errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
teo-tsirpanis committed Jan 15, 2025
1 parent a61a25c commit fe04bb2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tiledb/sm/filesystem/azure.cc
Original file line number Diff line number Diff line change
Expand Up @@ -731,10 +731,7 @@ void Azure::touch(const URI& uri) const {
"Cannot create file; URI is a directory: " + uri.to_string());
}

std::string container_name;
std::string blob_path;
RETURN_NOT_OK(parse_azure_uri(uri, &container_name, &blob_path));

auto [container_name, blob_path] = parse_azure_uri(uri);
try {
::Azure::Core::IO::MemoryBodyStream stream(nullptr, 0);
::Azure::Storage::Blobs::UploadBlockBlobOptions options;
Expand All @@ -747,7 +744,7 @@ void Azure::touch(const URI& uri) const {
} catch (const ::Azure::Storage::StorageException& e) {
if (e.StatusCode == ::Azure::Core::Http::HttpStatusCode::Conflict) {
// Blob already exists.
return Status::Ok();
return;
}
throw AzureException(
"Touch blob failed on: " + uri.to_string() + "; " + e.Message);
Expand Down

0 comments on commit fe04bb2

Please sign in to comment.