diff options
author | Keith Bostic <keith@wiredtiger.com> | 2014-10-17 07:46:30 -0400 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2014-10-17 07:46:30 -0400 |
commit | 7590319f16c8ef44431ecc116dfd3c8b69dfcac6 (patch) | |
tree | badc045a50b34b476acca4e1f4ee0d570c660168 /src/docs/transactions.dox | |
parent | b063e91fb4ac65c8e24a9387f00f6e13b591b661 (diff) | |
download | mongo-7590319f16c8ef44431ecc116dfd3c8b69dfcac6.tar.gz |
Rename WT_DEADLOCK to WT_ROLLBACK, reference #1204.
Diffstat (limited to 'src/docs/transactions.dox')
-rw-r--r-- | src/docs/transactions.dox | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/docs/transactions.dox b/src/docs/transactions.dox index 7f3acaa245d..8b57152cf52 100644 --- a/src/docs/transactions.dox +++ b/src/docs/transactions.dox @@ -42,7 +42,7 @@ If WT_SESSION::commit_transaction returns an error for any reason, the transaction was rolled back, not committed. When transactions are used, data operations can encounter a conflict and -fail with the ::WT_DEADLOCK error. If this error occurs, transactions +fail with the ::WT_ROLLBACK error. If this error occurs, transactions should be rolled back with WT_SESSION::rollback_transaction and the operation retried. @@ -76,14 +76,14 @@ the bottleneck of a centralized lock manager and ensures transactional operations do not block: reads do not block writes, and vice versa. Further, writes do not block writes, although concurrent transactions -updating the same value will fail with ::WT_DEADLOCK. Some applications +updating the same value will fail with ::WT_ROLLBACK. Some applications may benefit from application-level synchronization to avoid repeated attempts to rollback and update the same value. -Operations in transactions may also fail with the ::WT_DEADLOCK error if +Operations in transactions may also fail with the ::WT_ROLLBACK error if some resource cannot be allocated after repeated attempts. For example, if the cache is not large enough to hold the updates required to satisfy -transactional readers, an operation may fail and return ::WT_DEADLOCK. +transactional readers, an operation may fail and return ::WT_ROLLBACK. @section transaction_isolation Isolation levels |