mirror of https://github.com/milvus-io/milvus.git
Fix the data is disappeared when upsert (#22762)
Signed-off-by: lixinguo <xinguo.li@zilliz.com> Co-authored-by: lixinguo <xinguo.li@zilliz.com>pull/22779/head
parent
21ba8182ee
commit
8799b06dbc
|
@ -258,7 +258,10 @@ func (t *compactionTask) merge(
|
||||||
|
|
||||||
isDeletedValue := func(v *storage.Value) bool {
|
isDeletedValue := func(v *storage.Value) bool {
|
||||||
ts, ok := delta[v.PK.GetValue()]
|
ts, ok := delta[v.PK.GetValue()]
|
||||||
if ok && uint64(v.Timestamp) <= ts {
|
// insert task and delete task has the same ts when upsert
|
||||||
|
// here should be < instead of <=
|
||||||
|
// to avoid the upsert data to be deleted after compact
|
||||||
|
if ok && uint64(v.Timestamp) < ts {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Reference in New Issue