diff options
author | James Wahlin <james@mongodb.com> | 2018-07-20 09:05:04 -0400 |
---|---|---|
committer | James Wahlin <james@mongodb.com> | 2018-07-24 13:09:41 -0400 |
commit | 35528523c00b72a210dc5b78a427d90ed1c14331 (patch) | |
tree | e666ffa680ffc39ca0bdbce323ac2fb116dedf6a /jstests/core/txns/transactions_block_ddl.js | |
parent | 9175c4deba82dc35606d14428d1bf0d8b43d7a6c (diff) | |
download | mongo-35528523c00b72a210dc5b78a427d90ed1c14331.tar.gz |
SERVER-35031 Return MaxTimeMSExpired for maxTimeMS timeout
Adds a new 'MaxTimeMSExpired' error code, returned when a timeout occurs
due to exceeding of maxTimeMS. Timeouts unrelated to maxTimeMS will
continue to return 'ExceededTimeLimit'.
Diffstat (limited to 'jstests/core/txns/transactions_block_ddl.js')
-rw-r--r-- | jstests/core/txns/transactions_block_ddl.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/txns/transactions_block_ddl.js b/jstests/core/txns/transactions_block_ddl.js index 0d6c4d1aa56..298795d004f 100644 --- a/jstests/core/txns/transactions_block_ddl.js +++ b/jstests/core/txns/transactions_block_ddl.js @@ -27,7 +27,7 @@ assert.commandWorked(sessionColl.insert({a: 5, b: 6})); assert.commandFailedWithCode( testDB.getSiblingDB(cmdDBName).runCommand(Object.assign({}, ddlCmd, {maxTimeMS: 500})), - ErrorCodes.ExceededTimeLimit); + ErrorCodes.MaxTimeMSExpired); assert.commandWorked(session.commitTransaction_forTesting()); } |