From fe04bb258ef5c5d45269aa58b44419057b5f0b5f Mon Sep 17 00:00:00 2001 From: Theodore Tsirpanis Date: Wed, 15 Jan 2025 22:55:38 +0200 Subject: [PATCH] Fix compile errors. --- tiledb/sm/filesystem/azure.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tiledb/sm/filesystem/azure.cc b/tiledb/sm/filesystem/azure.cc index 62c6b788bfb..2e6223e014a 100644 --- a/tiledb/sm/filesystem/azure.cc +++ b/tiledb/sm/filesystem/azure.cc @@ -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; @@ -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);