diff --git a/source/dnode/mgmt/node_util/src/dmEps.c b/source/dnode/mgmt/node_util/src/dmEps.c index 12827e8413a15ee42475a51009cbed22d910249c..b653ef74dc66ef2af1a667fd0b9bec29a7299a09 100644 --- a/source/dnode/mgmt/node_util/src/dmEps.c +++ b/source/dnode/mgmt/node_util/src/dmEps.c @@ -516,7 +516,7 @@ _OVER: for (int32_t j = 0; j < (int32_t)taosArrayGetSize(pData->dnodeEps); ++j) { SDnodeEp *pDnodeEp = taosArrayGet(pData->dnodeEps, j); if (pDnodeEp->id == pair->id) { - tstrncpy(pair->oldFqdn, pDnodeEp->ep.fqdn, TSDB_FQDN_LEN); + tstrncpy(pair->oldFqdn, pair->newFqdn, TSDB_FQDN_LEN); pair->oldPort = pair->newPort; } }