diff --git a/src/Coordination/KeeperSnapshotManagerS3.h b/src/Coordination/KeeperSnapshotManagerS3.h index 97126e1ddb8..e17cf5a1cfb 100644 --- a/src/Coordination/KeeperSnapshotManagerS3.h +++ b/src/Coordination/KeeperSnapshotManagerS3.h @@ -9,7 +9,6 @@ #include #if USE_AWS_S3 -#include #include #include @@ -66,8 +65,6 @@ public: void updateS3Configuration(const Poco::Util::AbstractConfiguration &, const MultiVersion::Version &) {} void uploadSnapshot(const SnapshotFileInfo &, [[maybe_unused]] bool async_upload = true) {} - std::string getAvaibilityZone() const { return ""; } - void startup(const Poco::Util::AbstractConfiguration &, const MultiVersion::Version &) {} void shutdown() {} diff --git a/src/IO/S3/Credentials.cpp b/src/IO/S3/Credentials.cpp index decd5f24fc1..29354d188e0 100644 --- a/src/IO/S3/Credentials.cpp +++ b/src/IO/S3/Credentials.cpp @@ -261,7 +261,7 @@ String getGCPAvailabilityZoneOrException() Poco::Net::HTTPClientSession session(uri.getHost(), uri.getPort()); Poco::Net::HTTPRequest request(Poco::Net::HTTPRequest::HTTP_GET, uri.getPath()); Poco::Net::HTTPResponse response; - request.set("Metadata-Flavor", "Google"); + request.set("Metadata-Flavor", "Google"); session.sendRequest(request); std::istream& rs = session.receiveResponse(response); if (response.getStatus() != Poco::Net::HTTPResponse::HTTP_OK) { @@ -273,8 +273,7 @@ String getGCPAvailabilityZoneOrException() Strings zone_info; boost::split(zone_info, response_data, boost::is_any_of("/")); if (zone_info.size() != 4) { - throw DB::Exception(ErrorCodes::GCP_ERROR, - "Invalid format of GCP zone information, expect projects//zones/, got {}", response_data); + throw DB::Exception(ErrorCodes::GCP_ERROR, "Invalid format of GCP zone information, expect projects//zones/, got {}", response_data); } return zone_info[3]; } @@ -294,8 +293,7 @@ std::variant getRunningAvailabilityZoneImpl() } catch(const DB::Exception & gcp_ex) { - throw DB::Exception(ErrorCodes::UNSUPPORTED_METHOD, - "Failed to find the availability zone, tried AWS, GCP. AWS Error {}\n GCP Error {}", aws_ex.displayText(), gcp_ex.displayText()); + throw DB::Exception(ErrorCodes::UNSUPPORTED_METHOD, "Failed to find the availability zone, tried AWS, GCP. AWS Error {}\n GCP Error {}", aws_ex.displayText(), gcp_ex.displayText()); } } }