diff --git a/source/dnode/mgmt/mgmt_mnode/src/mmFile.c b/source/dnode/mgmt/mgmt_mnode/src/mmFile.c index 1a91fe9d56..f06669a610 100644 --- a/source/dnode/mgmt/mgmt_mnode/src/mmFile.c +++ b/source/dnode/mgmt/mgmt_mnode/src/mmFile.c @@ -26,7 +26,7 @@ static int32_t mmDecodeOption(SJson *pJson, SMnodeOpt *pOption) { if (code < 0) return 0; SJson *replicas = tjsonGetObjectItem(pJson, "replicas"); - if (replicas == NULL) return -1; + if (replicas == NULL) return 0; pOption->numOfReplicas = tjsonGetArraySize(replicas); for (int32_t i = 0; i < pOption->numOfReplicas; ++i) {