| 134 | } |
| 135 | |
| 136 | void 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 | } |
no outgoing calls