[DOCS-7412] Comment on: "manual/tutorial/perform-two-phase-commits.txt" Created: 14/Mar/16  Updated: 03/Nov/17  Resolved: 14/Mar/16

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Bug Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Unassigned
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

website

Location: https://docs.mongodb.org/manual/tutorial/perform-two-phase-commits/#phase-commits-rollback
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:43.0) Gecko/20100101 Firefox/43.0
Referrer: https://docs.mongodb.org/manual/tutorial/perform-two-phase-commits/
Screen Resolution: 1440 x 900
repo: docs
source: tutorial/perform-two-phase-commits


Participants:
Days since reply: 7 years, 48 weeks, 2 days ago

 Description   

in https://docs.mongodb.org/manual/tutorial/perform-two-phase-commits/#initialize-source-and-destination-accounts there is a typo in the demo code.

It seems that both accounts have their balance temporarily increased. Perhaps it should read:

```
db.accounts.insert(
[

{ _id: "A", balance: -1000, pendingTransactions: [] }

,

{ _id: "B", balance: 1000, pendingTransactions: [] }

]
)
```

(Note that balance 'A' should be -ve)


Generated at Thu Feb 08 07:54:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.