From 5138b611cbb384f87c0437d51f1fe3a72a4bf7b4 Mon Sep 17 00:00:00 2001 From: Dan Pasette Date: Mon, 24 Mar 2014 20:53:48 -0400 Subject: SERVER-13334 fix maxTimeMS shell helper with count --- src/mongo/shell/query.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mongo') diff --git a/src/mongo/shell/query.js b/src/mongo/shell/query.js index 8e0e6b88d66..50fad60f7fa 100644 --- a/src/mongo/shell/query.js +++ b/src/mongo/shell/query.js @@ -167,7 +167,7 @@ DBQuery.prototype.count = function( applySkipLimit ) { if ( this._special ) { cmd.query = this._query.query; if ( this._query.$maxTimeMS ) { - cmd.$maxTimeMS = this._query.$maxTimeMS; + cmd.maxTimeMS = this._query.$maxTimeMS; } if ( this._query.$hint ) { cmd.hint = this._query.$hint; -- cgit v1.2.1