hello, because there is a issue at 4.4.11+ version,
+https://jira.mongodb.org/browse/SERVER-72532+
I want to disable the mirrors reads feature, so I run the following command using mongosh 1.6:
db.adminCommand( { setParameter: 1, mirrorReads: { samplingRate: 0.0 } } )
but, I got an exception:
MongoServerError: BSON field 'mirrorReads.samplingRate' is the wrong type 'int', expected type 'double'
the same command that I run using mongo got successful result. I think this is a mongosh 's bug. Can anyone help to fix it ?
- duplicates
-
MONGOSH-1211 BSON field 'profile.sampleRate' is the wrong type 'int', expected type 'double'
- Closed