diff --git a/source/dnode/mgmt/mgmt_mnode/src/mmFile.c b/source/dnode/mgmt/mgmt_mnode/src/mmFile.c index b9b98eb09b..563d123b83 100644 --- a/source/dnode/mgmt/mgmt_mnode/src/mmFile.c +++ b/source/dnode/mgmt/mgmt_mnode/src/mmFile.c @@ -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;