summaryrefslogtreecommitdiff
path: root/jstests/sharding/linearizable_read_concern.js
diff options
context:
space:
mode:
authorJames Wahlin <james@mongodb.com>2018-07-20 09:05:04 -0400
committerJames Wahlin <james@mongodb.com>2018-07-27 14:14:20 -0400
commit54f1582fc6eb01de4d4c42f26fc133e623f065fb (patch)
tree5267a15f4d28a68d9ecf0dc0622c26fa52832a1d /jstests/sharding/linearizable_read_concern.js
parent9d5a4298d2dd876d0762b27221332f0d9cc1871e (diff)
downloadmongo-r4.0.1.tar.gz
SERVER-35031 Return MaxTimeMSExpired for maxTimeMS timeoutr4.0.1-rc1r4.0.1
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'. (cherry picked from commit 35528523c00b72a210dc5b78a427d90ed1c14331)
Diffstat (limited to 'jstests/sharding/linearizable_read_concern.js')
-rw-r--r--jstests/sharding/linearizable_read_concern.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/sharding/linearizable_read_concern.js b/jstests/sharding/linearizable_read_concern.js
index 637566e1b2d..1269bc5c4a3 100644
--- a/jstests/sharding/linearizable_read_concern.js
+++ b/jstests/sharding/linearizable_read_concern.js
@@ -122,7 +122,7 @@ load("jstests/libs/write_concern_util.js");
readConcern: {level: "linearizable"},
maxTimeMS: 3000
});
- assert.commandFailedWithCode(result, ErrorCodes.ExceededTimeLimit);
+ assert.commandFailedWithCode(result, ErrorCodes.MaxTimeMSExpired);
st.stop();
})();