diff options
author | Wenbin Zhu <wenbin.zhu@mongodb.com> | 2021-10-14 17:51:38 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-10-14 18:45:43 +0000 |
commit | 16c954fa873af6c06ae5428b8af7db3363ae8747 (patch) | |
tree | 1fd5b57a025f92cca0104d67097718839302d08c /jstests/noPassthrough | |
parent | e4c27a5c36dfe4c510809c8d1feb824a545b8b58 (diff) | |
download | mongo-16c954fa873af6c06ae5428b8af7db3363ae8747.tar.gz |
SERVER-60086 Add read concern check for aggregate commands.
Diffstat (limited to 'jstests/noPassthrough')
-rw-r--r-- | jstests/noPassthrough/set_window_fields_read_concern_snapshot.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/jstests/noPassthrough/set_window_fields_read_concern_snapshot.js b/jstests/noPassthrough/set_window_fields_read_concern_snapshot.js index 1668dc899d7..8f19b2c9864 100644 --- a/jstests/noPassthrough/set_window_fields_read_concern_snapshot.js +++ b/jstests/noPassthrough/set_window_fields_read_concern_snapshot.js @@ -63,8 +63,7 @@ aggregationCommand = { allowDiskUse: true, cursor: {}, }; -assert.commandFailedWithCode(sessionColl.runCommand(aggregationCommand), - ErrorCodes.OperationNotSupportedInTransaction); +assert.commandFailedWithCode(sessionColl.runCommand(aggregationCommand), ErrorCodes.InvalidOptions); // Transaction state is now unusual, abort it and start a new one. session.abortTransaction(); session.startTransaction({readConcern: {level: "snapshot"}}); @@ -75,7 +74,6 @@ aggregationCommand = { allowDiskUse: true, cursor: {} }; -assert.commandFailedWithCode(sessionColl.runCommand(aggregationCommand), - ErrorCodes.OperationNotSupportedInTransaction); +assert.commandFailedWithCode(sessionColl.runCommand(aggregationCommand), ErrorCodes.InvalidOptions); rst.stopSet(); })(); |