mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-08 10:08:42 +08:00
Fix the data is disappeared when upsert (#22762)
Signed-off-by: lixinguo <xinguo.li@zilliz.com> Co-authored-by: lixinguo <xinguo.li@zilliz.com>
This commit is contained in:
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…
x
Reference in New Issue
Block a user