Skip to content

Commit

Permalink
feat: 修复 transfer ES 索引 id 重复问题 --story=118561918 (#440)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiandongx authored Jul 15, 2024
1 parent 0ea5242 commit fe4069e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/transfer/elasticsearch/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ func (b *BulkHandler) makeRecordID(values map[string]interface{}) string {

for _, key := range b.uniqueField {
buf.WriteString(conv.String(values[key]))
buf.WriteString("/")
}
n := xxhash.Sum64(buf.Bytes())
return strconv.FormatUint(n, 10)
Expand Down

0 comments on commit fe4069e

Please sign in to comment.