Skip to content

Commit

Permalink
Do not pass the document's current version to elasticsearch.update wh…
Browse files Browse the repository at this point in the history
…en retry_on_conflict is not None
  • Loading branch information
armando committed Dec 3, 2020
1 parent f856f5d commit b99fa9c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions elasticsearch_dsl/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ def update(

if retry_on_conflict is not None:
doc_meta["retry_on_conflict"] = retry_on_conflict
doc_meta["version"] = None

# Optimistic concurrency control
if "seq_no" in self.meta and "primary_term" in self.meta:
Expand Down

0 comments on commit b99fa9c

Please sign in to comment.