diff options
Diffstat (limited to 'src/mongo/shell/db.js')
-rw-r--r-- | src/mongo/shell/db.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/shell/db.js b/src/mongo/shell/db.js index a7e133df116..8ef40760efa 100644 --- a/src/mongo/shell/db.js +++ b/src/mongo/shell/db.js @@ -215,6 +215,9 @@ var DB; delete optcpy['useCursor']; } + const maxAwaitTimeMS = optcpy.maxAwaitTimeMS; + delete optcpy.maxAwaitTimeMS; + // Reassign the cleaned-up options. aggregateOptions = optcpy; @@ -263,7 +266,7 @@ var DB; batchSizeValue = cmdObj["cursor"]["batchSize"]; } - return new DBCommandCursor(this, res, batchSizeValue); + return new DBCommandCursor(this, res, batchSizeValue, maxAwaitTimeMS); } return res; |