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
Expected:
The SQL update should have a where clause protecting against concurrent writes. If thread1 reads the index, then thread2 reads the index and then thread2 writes before thread1, then thread1 should fail when it tries to write.
This is easily achieved by passing in the old value and adding a where clause to check the value is still what was read. Then the method can fail if the SQL affects no rows.
The text was updated successfully, but these errors were encountered:
Regarding this code:
tari/base_layer/key_manager/src/key_manager_service/storage/sqlite_db/key_manager_state.rs
Line 135 in 06a02fb
Expected:
The SQL update should have a where clause protecting against concurrent writes. If thread1 reads the index, then thread2 reads the index and then thread2 writes before thread1, then thread1 should fail when it tries to write.
This is easily achieved by passing in the old value and adding a where clause to check the value is still what was read. Then the method can fail if the SQL affects no rows.
The text was updated successfully, but these errors were encountered: