fix: Set segment to delegator failed due to wrong time unit in segment version (#32923)

issue: #31468
pr: #31643
the fix in #31643 try to update segment version when set segment to
delegator, but use wrong time unit as segment version, which make set
segment failed, and block the balance channel.

Signed-off-by: Wei Liu <wei.liu@zilliz.com>
This commit is contained in:
wei liu 2024-05-10 16:37:31 +08:00 committed by GitHub
parent 996b79c76c
commit 7555b4a00f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -166,7 +166,7 @@ func (o *LeaderObserver) findNeedLoadedSegments(leaderView *meta.LeaderView, dis
PartitionID: s.GetPartitionID(),
SegmentID: s.GetID(),
NodeID: s.Node,
Version: time.Now().Unix(),
Version: time.Now().UnixNano(),
Info: loadInfo,
})
}