mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 02:21:59 +00:00
fix build for non USE_S3 case
Signed-off-by: Jianfei Hu <hujianfei258@gmail.com>
This commit is contained in:
parent
d0398e3c1d
commit
ea92dbb1c7
@ -784,15 +784,17 @@ S3CredentialsProviderChain::S3CredentialsProviderChain(
|
||||
|
||||
#else
|
||||
|
||||
# include <stdexcept>
|
||||
|
||||
namespace DB
|
||||
{
|
||||
|
||||
namespace S3
|
||||
{
|
||||
|
||||
String getRunningAvailabilityZone()
|
||||
std::string getRunningAvailabilityZone()
|
||||
{
|
||||
throw Poco::Exception("Does not support availability zone detection for non-cloud environment");
|
||||
throw std::runtime_error("Does not support availability zone detection for non-cloud environment");
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ inline static constexpr uint64_t DEFAULT_EXPIRATION_WINDOW_SECONDS = 120;
|
||||
static inline constexpr char GCP_METADATA_SERVICE_ENDPOINT[] = "http://metadata.google.internal";
|
||||
|
||||
/// getRunningAvailabilityZone returns the availability zone of the underlying compute resources where the current process runs.
|
||||
String getRunningAvailabilityZone();
|
||||
std::string getRunningAvailabilityZone();
|
||||
|
||||
class AWSEC2MetadataClient : public Aws::Internal::AWSHttpResourceClient
|
||||
{
|
||||
@ -189,12 +189,14 @@ public:
|
||||
|
||||
#else
|
||||
|
||||
# include <string>
|
||||
|
||||
namespace DB
|
||||
{
|
||||
|
||||
namespace S3
|
||||
{
|
||||
String getRunningAvailabilityZone();
|
||||
std::string getRunningAvailabilityZone();
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user