fix(cos/checks3): failed early if not enabled

This commit is contained in:
Minglei Jin 2024-05-14 11:27:43 +08:00
parent 92a3686c2f
commit 2e919ff9d0
1 changed files with 5 additions and 0 deletions

View File

@ -63,6 +63,11 @@ static int32_t s3ListBucket(char const *bucketname);
int32_t s3CheckCfg() {
int32_t code = 0;
if (!tsS3Enabled) {
fprintf(stderr, "s3 not configured.\n");
goto _exit;
}
code = s3Begin();
if (code != 0) {
fprintf(stderr, "failed to initialize s3.\n");