0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
mongodb/jstests/hooks/run_fuzzer_restore_settings.js

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]);
})();