diff options
author | Romans Kasperovics <romans.kasperovics@mongodb.com> | 2022-04-12 16:43:51 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-04-12 22:54:31 +0000 |
commit | f285f0af3d8d1448db1abafcaf4506a96af9e511 (patch) | |
tree | 4b72f79e7899358c8a882588ccf4017ff41354d7 /jstests/noPassthroughWithMongod | |
parent | fd75059c83cfa4be0225bd03b9c96a21aea39887 (diff) | |
download | mongo-f285f0af3d8d1448db1abafcaf4506a96af9e511.tar.gz |
SERVER-63208 Make allowDiskUse opt-out rather than opt-in
Diffstat (limited to 'jstests/noPassthroughWithMongod')
-rw-r--r-- | jstests/noPassthroughWithMongod/find_and_modify_server16469.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/jstests/noPassthroughWithMongod/find_and_modify_server16469.js b/jstests/noPassthroughWithMongod/find_and_modify_server16469.js index b1b7ceae613..40bd862e111 100644 --- a/jstests/noPassthroughWithMongod/find_and_modify_server16469.js +++ b/jstests/noPassthroughWithMongod/find_and_modify_server16469.js @@ -16,6 +16,7 @@ var oldSortLimit = result.internalQueryMaxBlockingSortMemoryUsageBytes; var newSortLimit = 1024 * 1024; assert.commandWorked( db.adminCommand({setParameter: 1, internalQueryMaxBlockingSortMemoryUsageBytes: newSortLimit})); +assert.commandWorked(db.adminCommand({setParameter: 1, allowDiskUseByDefault: false})); try { // Insert ~3MB of data. @@ -41,6 +42,7 @@ try { assert.eq(result.value.b, 0); } finally { // Restore the orginal sort memory limit. + assert.commandWorked(db.adminCommand({setParameter: 1, allowDiskUseByDefault: true})); assert.commandWorked(db.adminCommand( {setParameter: 1, internalQueryMaxBlockingSortMemoryUsageBytes: oldSortLimit})); } |