Skip to content

Instantly share code, notes, and snippets.

@ianf-mongodb
Created August 27, 2021 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ianf-mongodb/e6827d1b11720e774745cdf3879c5984 to your computer and use it in GitHub Desktop.
Save ianf-mongodb/e6827d1b11720e774745cdf3879c5984 to your computer and use it in GitHub Desktop.
mlaunch --replicaset
mongosh --port 27017
cfg = rs.conf();
cfg.settings.getLastErrorDefaults = {w : 2, wtimeout: 0}
rs.reconfig(cfg)
#MongoServerError: Failed to reconfig: Replica set config contains customized getLastErrorDefaults, which has been deprecated and is now ignored. Use setDefaultRWConcern instead to set a cluster-wide default writeConcern.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment