mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
14 lines
434 B
JavaScript
14 lines
434 B
JavaScript
(function() {
|
|
'use strict';
|
|
|
|
// Unsetting read/write settings. This command will also cause the server to refresh and get
|
|
// the new settings. A standalone, mongos or old version will return an error; ignore it.
|
|
const result = db.adminCommand({
|
|
setDefaultRWConcern: 1,
|
|
defaultReadConcern: {},
|
|
defaultWriteConcern: {},
|
|
writeConcern: {w: 1}
|
|
});
|
|
assert.commandWorkedOrFailedWithCode(result, [51300, 51301, 40415]);
|
|
})();
|