Skip to content

Commit

Permalink
A note on deadlocks
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotchance committed Jun 10, 2015
1 parent aad57d7 commit 4cdc55b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tesseract/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
This is different to what the SQL standard states where ``START TRANSACTION`` is
implicit but the ``COMMIT`` is not.
Internals
---------
Expand All @@ -38,6 +39,7 @@
1. The ``xid`` is not in the active transactions.
2. The ``xex`` is ``0`` OR ``xex`` is not in the active transactions.
Collisions
----------
Expand All @@ -55,7 +57,17 @@
solution as we should wait for that lock to be released but that's an
improvement for another day.
Deadlocks
---------
A `deadlock`_ should be impossible given that a transaction will immediately
fail and ``ROLLBACK``. When we have a scheduler for transactions then this will
be a legitimate concern.
.. _MVCC: http://en.wikipedia.org/wiki/Multiversion_concurrency_control
.. _deadlock: http://en.wikipedia.org/wiki/Deadlock
"""

import redis
Expand Down

0 comments on commit 4cdc55b

Please sign in to comment.