refactor error code

This commit is contained in:
Yihao Deng 2024-07-17 03:00:38 +00:00
parent cd9b4b132e
commit f0fa962410
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ static int32_t mmDecodeOption(SJson *pJson, SMnodeOpt *pOption) {
if (code < 0) return code;
SJson *replicas = tjsonGetObjectItem(pJson, "replicas");
if (replicas == NULL) return TSDB_CODE_INVALID_JSON_FORMAT;
if (replicas == NULL) return 0;
pOption->numOfTotalReplicas = tjsonGetArraySize(replicas);
pOption->numOfReplicas = 0;