MongoDB Majority Read Concern

Hi,

am working on mongoDB version 4.2

I need to cahnge my replication set read concern from “majority” to “local”.

Accroding to the documentation the only way to do that for this version and lower versions is to change the configuration file by setting replication.enableMajorityReadConcern to false.

However, I did not find any indication on how to do that. Tried:

replication:
  replSetName: rs0
  replication.enableMajorityReadConcern: false

and

replication:
  replSetName: rs0
  replication.enableMajorityReadConcern = false

but both fails.

What is the correct way to do this then?

Thank,
Tamar

Under replication heading there is no need to use

replication.enableMajorityReadConcern

Just use enableMajorityReadConcern: false

Second one with “=” is not correct format

1 Like

Hi ,

Thank you for the clarification.
Is there a way in this version (4.2) to see that indeed read concern was changed after I apply the change in the configuration file?

Thanks,
Tamar