[SERVER-37466] mongo shell Transaction options missing read preference Created: 03/Oct/18  Updated: 06/Dec/22

Status: Backlog
Project: Core Server
Component/s: Replication, Shell
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Kay Kim (Inactive) Assignee: Backlog - Replication Team
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to DOCS-12111 Transaction options: read pref Closed
Assigned Teams:
Replication
Participants:

 Description   

Hi – 

in the drivers spec, read pref is part of the transaction options

https://github.com/mongodb/specifications/blob/master/source/transactions/transactions.rst#id17

But in the mongo shell, TransactionOptions seem to be missing readpref:

https://github.com/mongodb/mongo/blob/23794c14b03bb272daad7a2b25eca0b80c03a31c/src/mongo/shell/session.js#L461-L484

 

Should they be in sync?



 Comments   
Comment by Kaloian Manassiev [ 04/Oct/18 ]

As of 4.0 transactions can only use primary read preference so I imagine we left it out to be added when we actually support non-primary read preferences as well.

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