1- #include " cloud/gcp/gcp_file_system.h"
2- #include " rocksdb/cloud/cloud_file_system.h"
31#include < chrono>
42
3+ #include " rocksdb/cloud/cloud_file_system.h"
4+
55#ifdef USE_GCP
6+ #include " cloud/gcp/gcp_file_system.h"
7+
68#include < google/cloud/optional.h>
79#include < google/cloud/options.h>
810#include < google/cloud/retry_policy.h>
@@ -47,7 +49,7 @@ class GcpRetryPolicy : public gcs::RetryPolicy {
4749 " [gcs] Encountered failure: %s"
4850 " retry attempt %d exceeds max retries %d. Aborting..." ,
4951 s.message ().c_str (), failure_count_, maximum_failures_);
50- // retry count exceed maxnum , but is not nonretryable
52+ // retry count exceed maxium , but is not nonretryable
5153 return false ;
5254 }
5355 } else {
@@ -112,12 +114,12 @@ Status GcpCloudOptions::GetClientConfiguration(CloudFileSystem* fs,
112114 GcpRetryPolicy (fs, std::chrono::milliseconds (timeout_ms)).clone ());
113115 return Status::OK ();
114116}
115- #else
116- Status GcpCloudOptions::GetClientConfiguration (CloudFileSystem*,
117- std::string const &,
118- gcp::Options&) {
119- return Status::NotSupported (" Not configured for GCP support" );
120- }
117+ // #else
118+ // Status GcpCloudOptions::GetClientConfiguration(CloudFileSystem*,
119+ // std::string const&,
120+ // gcp::Options&) {
121+ // return Status::NotSupported("Not configured for GCP support");
122+ // }
121123#endif /* USE_GCP */
122124
123125} // namespace ROCKSDB_NAMESPACE
0 commit comments