mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
fix: allow datanode's server id to be updated (#31597)
issue: #31516 background: the server id field in data node is redundant. session id already provides the source of truth. Signed-off-by: yiwangdr <yiwangdr@gmail.com>
This commit is contained in:
parent
01c2684355
commit
d6e537c91c
@ -242,7 +242,7 @@ func (node *DataNode) Init() error {
|
||||
return
|
||||
}
|
||||
|
||||
serverID := node.session.ServerID
|
||||
serverID := node.GetNodeID()
|
||||
log := log.Ctx(node.ctx).With(zap.String("role", typeutil.DataNodeRole), zap.Int64("nodeID", serverID))
|
||||
|
||||
node.broker = broker.NewCoordBroker(node.rootCoord, node.dataCoord, serverID)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user