config: fix default configs

This commit is contained in:
Minglei Jin 2023-08-09 18:48:59 +08:00
parent a853d9d40c
commit ca5571d0d6
1 changed files with 3 additions and 0 deletions

View File

@ -266,6 +266,9 @@ int32_t taosSetTfsCfg(SConfig *pCfg);
int32_t taosSetS3Cfg(SConfig *pCfg) {
tstrncpy(tsS3AccessKey, cfgGetItem(pCfg, "s3Accesskey")->str, TSDB_FQDN_LEN);
if (tsS3AccessKey[0] == '<') {
return 0;
}
char *colon = strchr(tsS3AccessKey, ':');
if (!colon) {
uError("invalid access key:%s", tsS3AccessKey);