[DOCS-12673] commitTransaction use admin database Created: 03/May/19  Updated: 27/Oct/23  Resolved: 03/May/19

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

Type: Bug Priority: Major - P3
Reporter: Dimitri Milionis Assignee: Unassigned
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 4 years, 40 weeks, 5 days ago

 Description   

Description

https://docs.mongodb.com/manual/reference/command/commitTransaction/

states 

To run the commitTransaction, the command must be run against the admin database and run within aSession.

Does the commit really need to run against the admin database ? 

Scope of changes

Impact to Other Docs

MVP (Work and Date)

Resources (Scope or Design Docs, Invision, etc.)



 Comments   
Comment by Kay Kim (Inactive) [ 03/May/19 ]

Yes. The command commitTransaction must be run against the admin database

	"errmsg" : "commitTransaction may only be run against the admin database.",

However, the operations in the transaction themselves are not limited to the admin database and note that

most users should use the driver method or the mongo shell Session.commitTransaction() helper.

Hope this helps.

Generated at Thu Feb 08 08:05:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.