Merge pull request #19884 from taosdata/fix/TD-22331
fix(mnd/sdbdump): return false with null updateDnodeInfoFp
This commit is contained in:
commit
402cf13f0f
|
@ -60,7 +60,11 @@ void tmsgReleaseHandle(SRpcHandleInfo* pHandle, int8_t type) { (*defaultMsgCb.re
|
|||
void tmsgReportStartup(const char* name, const char* desc) { (*defaultMsgCb.reportStartupFp)(name, desc); }
|
||||
|
||||
bool tmsgUpdateDnodeInfo(int32_t* dnodeId, int64_t* clusterId, char* fqdn, uint16_t* port) {
|
||||
if (defaultMsgCb.updateDnodeInfoFp) {
|
||||
return (*defaultMsgCb.updateDnodeInfoFp)(defaultMsgCb.data, dnodeId, clusterId, fqdn, port);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
void tmsgUpdateDnodeEpSet(SEpSet* epset) {
|
||||
|
|
Loading…
Reference in New Issue