mirror of https://github.com/milvus-io/milvus.git
fix: lost DroppedAt field when DropCollection (#33766)
issue: #33097 Signed-off-by: chyezh <chyezh@outlook.com>pull/33805/head
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…
Reference in New Issue