Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-30268

Handle all command object formats when injecting readConcern clause

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.11
    • Affects Version/s: None
    • Component/s: Sharding
    • Fully Compatible
    • ALL
    • Sharding 2017-07-31, Sharding 2017-08-21
    • 0

      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

            Assignee:
            misha.tyulenev@mongodb.com Misha Tyulenev (Inactive)
            Reporter:
            misha.tyulenev@mongodb.com Misha Tyulenev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: