[SERVER-30268] Handle all command object formats when injecting readConcern clause Created: 21/Jul/17  Updated: 30/Oct/23  Resolved: 01/Aug/17

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 3.5.11

Type: Bug Priority: Major - P3
Reporter: Misha Tyulenev Assignee: Misha Tyulenev
Resolution: Fixed Votes: 0
Labels: PM-221
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding 2017-07-31, Sharding 2017-08-21
Participants:
Linked BF Score: 0

 Description   

need to handle command object variant

cmd: {
"query" : {
[js_test:basic2] 2017-07-20T16:29:50.439-0400 		"count" : "basic2",
[js_test:basic2] 2017-07-20T16:29:50.439-0400 		"query" : {
[js_test:basic2] 2017-07-20T16:29:50.439-0400 
[js_test:basic2] 2017-07-20T16:29:50.440-0400 		},
[js_test:basic2] 2017-07-20T16:29:50.440-0400 		"fields" : {
[js_test:basic2] 2017-07-20T16:29:50.440-0400 
[js_test:basic2] 2017-07-20T16:29:50.440-0400 		},
[js_test:basic2] 2017-07-20T16:29:50.440-0400 		"readConcern" : {
[js_test:basic2] 2017-07-20T16:29:50.440-0400 			"afterClusterTime" : Timestamp(1500582590, 4),
[js_test:basic2] 2017-07-20T16:29:50.440-0400 			"level" : "local"
[js_test:basic2] 2017-07-20T16:29:50.441-0400 		}
[js_test:basic2] 2017-07-20T16:29:50.441-0400 	},
[js_test:basic2] 2017-07-20T16:29:50.441-0400 	"$readPreference" : {
[js_test:basic2] 2017-07-20T16:29:50.441-0400 		"mode" : "secondary"
[js_test:basic2] 2017-07-20T16:29:50.441-0400 	}
[js_test:basic2] 2017-07-20T16:29:50.441-0400 }

i.e the readConcern needs to be inside the "query" or "$query" commands



 Comments   
Comment by Githook User [ 01/Aug/17 ]

Author:

{'email': 'misha@mongodb.com', 'username': 'mikety', 'name': 'Misha Tyulenev'}

Message: SERVER-30268 unwrap command object when injecting readConcern clause
Branch: master
https://github.com/mongodb/mongo/commit/3ee1ff685a391bc87b47030f5e5c53ec6909ade7

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