You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
143778: row, sql: add CPut of primary index to Updater and Deleter r=yuzefovich a=michae2
The upcoming fast paths for UPDATE and DELETE will skip the initial scan
of the target row. Instead, they will rely on CPut(s) to the primary
index to confirm that the target row exists and matches the WHERE clause
of the statement.
This PR adds a new CPut path to the Updater and Deleter which uses
expValue to validate the old values. It closely mirrors the CPut paths
added for the OriginTimestampCPutHelper in #130512. The main difference
is that unlike the OriginTimestampCPutHelper, these paths do not need to
delete all-NULL non-0 column families when not overwriting.
Only writes to the primary index need validation using CPut with
expValue. Writes to secondary indexes should be unchanged. If the CPut
to the primary index fails, all writes for the statement will be rolled
back using a savepoint (next PR).
Informs: #71153
Release note: None
Co-authored-by: Michael Erickson <[email protected]>
0 commit comments