MCPcopy Create free account
hub / github.com/apache/cloudberry / CheckEssentialConfig

Function CheckEssentialConfig

gpcontrib/gpcloud/src/s3conf.cpp:136–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136void CheckEssentialConfig(const S3Params& params) {
137 if (params.getCred().accessID.empty()) {
138 S3_CHECK_OR_DIE(false, S3ConfigError, "\"FATAL: access id not set\"", "accessid");
139 }
140
141 if (params.getCred().secret.empty()) {
142 S3_CHECK_OR_DIE(false, S3ConfigError, "\"FATAL: secret id not set\"", "secret");
143 }
144
145 if (s3ext_segnum <= 0) {
146 S3_CHECK_OR_DIE(false, S3ConfigError, "\"FATAL: segment info is invalid\"", "segment");
147 }
148
149 string newline = params.getGpcheckcloud_newline();
150 if (newline.compare("\n") && newline.compare("\r\n") && newline.compare("\r")) {
151 S3_CHECK_OR_DIE(false, S3ConfigError, "\"FATAL: gpcheckcloud_newline is invalid\"\"",
152 "gpcheckcloud_newline");
153 }
154}

Callers 2

TESTFunction · 0.85
InitConfigFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68