diff options
Diffstat (limited to 'jstests/libs/override_methods/find_batch_size.js')
-rw-r--r-- | jstests/libs/override_methods/find_batch_size.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/jstests/libs/override_methods/find_batch_size.js b/jstests/libs/override_methods/find_batch_size.js index ab773ded7ed..9636be036fd 100644 --- a/jstests/libs/override_methods/find_batch_size.js +++ b/jstests/libs/override_methods/find_batch_size.js @@ -10,14 +10,14 @@ // TODO: Add support for overriding batch sizes in the bulk API. (function() { - 'use strict'; +'use strict'; - // Save a reference to the original find method in the IIFE's scope. - // This scoping allows the original method to be called by the find override below. - var originalFind = DBCollection.prototype.find; +// Save a reference to the original find method in the IIFE's scope. +// This scoping allows the original method to be called by the find override below. +var originalFind = DBCollection.prototype.find; - DBCollection.prototype.find = function(query, fields, limit, skip, batchSize, options) { - var batchSizeDefault = batchSize || (TestData && TestData.batchSize); - return originalFind.call(this, query, fields, limit, skip, batchSizeDefault, options); - }; +DBCollection.prototype.find = function(query, fields, limit, skip, batchSize, options) { + var batchSizeDefault = batchSize || (TestData && TestData.batchSize); + return originalFind.call(this, query, fields, limit, skip, batchSizeDefault, options); +}; }()); |