mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
fix: lost DroppedAt field when DropCollection (#33766)
issue: #33097 Signed-off-by: chyezh <chyezh@outlook.com>
This commit is contained in:
parent
be3559e022
commit
b3ee1a4bd5
@ -1803,6 +1803,9 @@ func updateSegStateAndPrepareMetrics(segToUpdate *SegmentInfo, targetState commo
|
||||
zap.Int64("# of rows", segToUpdate.GetNumOfRows()))
|
||||
metricMutation.append(segToUpdate.GetState(), targetState, segToUpdate.GetLevel(), segToUpdate.GetNumOfRows())
|
||||
segToUpdate.State = targetState
|
||||
if targetState == commonpb.SegmentState_Dropped {
|
||||
segToUpdate.DroppedAt = uint64(time.Now().UnixNano())
|
||||
}
|
||||
}
|
||||
|
||||
func (m *meta) ListCollections() []int64 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user