fix(client): dp near read do not work because NearHosts was replaced by Hosts

Signed-off-by: liubingxing <liubbingxing@gmail.com>
This commit is contained in:
liubingxing 2025-04-07 16:20:42 +08:00 committed by Victor1319
parent b7635952e0
commit cde83bd84f

View File

@ -562,7 +562,7 @@ func (w *Wrapper) replaceOrInsertPartition(dp *DataPartition) {
old.ReplicaNum = dp.ReplicaNum
old.Hosts = dp.Hosts
old.IsDiscard = dp.IsDiscard
old.NearHosts = dp.Hosts
old.NearHosts = dp.NearHosts
dp.Metrics = old.Metrics
} else {