diff options
author | Judah Schvimer <judah@mongodb.com> | 2017-02-27 13:14:03 -0500 |
---|---|---|
committer | Judah Schvimer <judah@mongodb.com> | 2017-02-27 13:14:03 -0500 |
commit | a4e1443629b733c7c0fd44dddcd78e884da848bd (patch) | |
tree | 03f5b69a0069ed5ff1847a5e4df61c437603395d /src/mongo/shell/db.js | |
parent | 417c0158a6e154f9f6494b8db1b8358c379f7b99 (diff) | |
download | mongo-a4e1443629b733c7c0fd44dddcd78e884da848bd.tar.gz |
SERVER-27839 Allow for step downs during reconfig in ReplSetTest initiate
Diffstat (limited to 'src/mongo/shell/db.js')
-rw-r--r-- | src/mongo/shell/db.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/shell/db.js b/src/mongo/shell/db.js index 7a48128023e..4ad30cd7a33 100644 --- a/src/mongo/shell/db.js +++ b/src/mongo/shell/db.js @@ -331,7 +331,7 @@ var DB; } catch (e) { // we expect the command to not return a response, as the server will shut down // immediately. - if (e.message.indexOf("error doing query: failed") >= 0) { + if (isNetworkError(e)) { print('server should be down...'); return; } |