mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
fix: Aviod add negative missing count (#38748)
See also: #34665 Signed-off-by: yangxuan <xuan.yang@zilliz.com>
This commit is contained in:
parent
94955e5292
commit
4df444ef25
@ -84,7 +84,11 @@ func (filter *EntityFilter) GetDeltalogDeleteCount() int {
|
||||
}
|
||||
|
||||
func (filter *EntityFilter) GetMissingDeleteCount() int {
|
||||
return filter.GetDeltalogDeleteCount() - filter.GetDeletedCount()
|
||||
diff := filter.GetDeltalogDeleteCount() - filter.GetDeletedCount()
|
||||
if diff <= 0 {
|
||||
diff = 0
|
||||
}
|
||||
return diff
|
||||
}
|
||||
|
||||
func (filter *EntityFilter) isEntityDeleted(pk interface{}, pkTs typeutil.Timestamp) bool {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user