Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
release-19.1: storage/engine: fix re-issued KV writes with most recent seq num #43942
Backport 1/1 commits from #43937.
This commit fixes a bug in
This commit does not need to land on master because it was already fixed
Release note (bug fix): A SQL row write that is re-issued after
Fixes #43928. This commit fixes a bug in `MVCCMetadata.GetPrevIntentSeq` that was present since its inception (a147f24). The method was failing to properly look up the previous intent sequence when the last sequence in the sequence history should have been returned. This could cause errors for read-write KV ops like CPut, InitPut, and Increment. This commit does not need to land on master because it was already fixed there by f6a4dc5. It will need to end up on release-19.1 as well though. Release note (bug fix): A SQL row write that is re-issued after already succeeding will no longer throw a duplicate key error when the previous write in its transaction deleted the row.