diff options
author | Charlie Swanson <charlie.swanson@mongodb.com> | 2019-05-20 17:39:25 -0400 |
---|---|---|
committer | Charlie Swanson <charlie.swanson@mongodb.com> | 2019-06-03 10:30:55 -0400 |
commit | 9bcb318c4c9f2c482413a9d85b7e7c99c0492653 (patch) | |
tree | d05095e58f4bc309b7ff2191ae4d794fb1a0117f /src/mongo/shell | |
parent | 3542405aa31989401731f50ae76b3cec5ad1db47 (diff) | |
download | mongo-9bcb318c4c9f2c482413a9d85b7e7c99c0492653.tar.gz |
SERVER-23923 Track writeConcern through getMores
Diffstat (limited to 'src/mongo/shell')
-rw-r--r-- | src/mongo/shell/query.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mongo/shell/query.js b/src/mongo/shell/query.js index d51a2ba03fb..4304903ca36 100644 --- a/src/mongo/shell/query.js +++ b/src/mongo/shell/query.js @@ -801,9 +801,7 @@ DBCommandCursor.prototype._runGetMoreCommand = function() { // Deliver the getMore command, and check for errors in the response. var cmdRes = this._db.runCommand(getMoreCmd); - if (cmdRes.ok != 1) { - throw _getErrorWithCode(cmdRes, "getMore command failed: " + tojson(cmdRes)); - } + assert.commandWorked(cmdRes, () => "getMore command failed: " + tojson(cmdRes)); if (this._ns !== cmdRes.cursor.ns) { throw Error("unexpected collection in getMore response: " + this._ns + " != " + |