Details
-
Improvement
-
Resolution: Done
-
Major - P3
-
None
-
*Location*: http://docs.mongodb.org/manual/tutorial/perform-two-phase-commits/
*User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.71 (KHTML, like Gecko) Version/6.1 Safari/537.71
*Referrer*: http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=3&ved=0CDoQFjAC&url=http%3A%2F%2Fdocs.mongodb.org%2Fmanual%2Ftutorial%2Fperform-two-phase-commits&ei=jnCrUsuuKaiu4AS3qoHoAQ&usg=AFQjCNEuX1wNWOz1iS_Vor4TV5fmWmC9mw&sig2=AYpvnvUYF_tUILr4jeA1Lw
*Screen Resolution*: 2560 x 1440
*repo*: docs
*source*: tutorial/perform-two-phase-commits
*Location*: http://docs.mongodb.org/manual/tutorial/perform-two-phase-commits/ *User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.71 (KHTML, like Gecko) Version/6.1 Safari/537.71 *Referrer*: http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=3&ved=0CDoQFjAC&url=http%3A%2F%2Fdocs.mongodb.org%2Fmanual%2Ftutorial%2Fperform-two-phase-commits&ei=jnCrUsuuKaiu4AS3qoHoAQ&usg=AFQjCNEuX1wNWOz1iS_Vor4TV5fmWmC9mw&sig2=AYpvnvUYF_tUILr4jeA1Lw *Screen Resolution*: 2560 x 1440 *repo*: docs *source*: tutorial/perform-two-phase-commits
Description
The text below is wrong, and very confusing because of this mistake.
CURRENT
Apply Transaction to Both Accounts
Continue by applying the transaction to both accounts. The update() query will prevent you from applying the transaction if the transaction is not already pending. Use the following update() operation:
CORRECTED (remove the 'not' before pending)
Apply Transaction to Both Accounts
Continue by applying the transaction to both accounts. The update() query will prevent you from applying the transaction if the transaction is already pending. Use the following update() operation:
REASON
The pending state was already changed on the transaction. The update will prevent you from applying the same transaction twice, and does not check the pending state of the transaction at all - that has to be checked earlier.