Skip to content

Commit

Permalink
[TD-4874]<fix>: reset customScore to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenkgu committed Jun 30, 2021
1 parent 9eb7766 commit 6773f9b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mnode/src/mnodeDnode.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ static int32_t mnodeDnodeActionInsert(SSdbRow *pRow) {
pDnode->offlineReason = TAOS_DN_OFF_STATUS_NOT_RECEIVED;
}

pDnode->customScore = 0;

dnodeUpdateEp(pDnode->dnodeId, pDnode->dnodeEp, pDnode->dnodeFqdn, &pDnode->dnodePort);
mnodeUpdateDnodeEps();

Expand Down Expand Up @@ -1296,4 +1298,4 @@ int32_t mnodeCompactDnodes() {
mInfo("end to compact dnodes table...");

return 0;
}
}

0 comments on commit 6773f9b

Please sign in to comment.