diff options
Diffstat (limited to 'jstests/libs/override_methods/implicitly_shard_accessed_collections.js')
-rw-r--r-- | jstests/libs/override_methods/implicitly_shard_accessed_collections.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/jstests/libs/override_methods/implicitly_shard_accessed_collections.js b/jstests/libs/override_methods/implicitly_shard_accessed_collections.js index ab69f1cb817..313bd7faf7c 100644 --- a/jstests/libs/override_methods/implicitly_shard_accessed_collections.js +++ b/jstests/libs/override_methods/implicitly_shard_accessed_collections.js @@ -6,7 +6,7 @@ * on the db object. */ -(function () { +(function() { 'use strict'; // Save a reference to the original getCollection method in the IIFE's scope. @@ -14,11 +14,7 @@ var originalGetCollection = DB.prototype.getCollection; // Blacklisted namespaces that should not be sharded. - var blacklistedNamespaces = [ - /\$cmd/, - /^admin\./, - /\.system\./, - ]; + var blacklistedNamespaces = [/\$cmd/, /^admin\./, /\.system\./, ]; DB.prototype.getCollection = function() { var dbName = this.getName(); |