Skip to content
Snippets Groups Projects
Commit a8b37f7b authored by keleher's avatar keleher
Browse files

auto

parent f7f6101d
No related branches found
No related tags found
No related merge requests found
......@@ -79,9 +79,9 @@ the database.
### Testing
**Locks**
For locking, you should verify that your IX locks are working as intended. For example, you should ensure that:
- distinct tuples can be simultaneously locked exclusively by different transactions
- a tuple locked exclusively prevents a shared lock on the entire table.
For locking, you should verify that your IX locks are working as intended. For **example**, you should ensure that:
- distinct tuples can be simultaneously locked *exclusively* by different transactions
- a tuple locked exclusively prevents a *shared* lock on the entire table.
You can use `testingLocks.py` as the basis for your testing. The provided version will create three transactions that contend for the same lock (on the entire relation) and pause for differing amounts of time. Running `python3 testingLocks.py` should produce something like:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment