Merge pull request #32423 from taosdata/fix/TS-6968-m

fix: update dnode state from offline to online
This commit is contained in:
Hongze Cheng 2025-08-01 15:40:23 +08:00 committed by GitHub
commit 8933613114
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -936,6 +936,9 @@ static int32_t mndProcessStatusReq(SRpcMsg *pReq) {
pDnode->accessTimes++;
pDnode->lastAccessTime = curMs;
if ((DND_REASON_ONLINE != pDnode->offlineReason) && (online || mndIsDnodeOnline(pDnode, curMs))) {
pDnode->offlineReason = DND_REASON_ONLINE;
}
code = 0;
_OVER: