summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEddie Louie <eddie.louie@mongodb.com>2017-03-24 13:37:32 -0400
committerEddie Louie <eddie.louie@mongodb.com>2017-03-24 20:15:23 -0400
commit98515c812b6fa893613f063dae568ff8319cbfbd (patch)
tree322aa7b8dc8cd41c6ce7369c4a20e900591f6fcd
parent39ebea7cc93e3da45d280d011992e6cdb3417433 (diff)
downloadmongo-r3.5.5.tar.gz
SERVER-28485 Disable implicit shardCollection after drop on OS Xr3.5.5
-rw-r--r--jstests/libs/override_methods/implicitly_shard_accessed_collections.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/jstests/libs/override_methods/implicitly_shard_accessed_collections.js b/jstests/libs/override_methods/implicitly_shard_accessed_collections.js
index a29f68b7323..1fcb31da250 100644
--- a/jstests/libs/override_methods/implicitly_shard_accessed_collections.js
+++ b/jstests/libs/override_methods/implicitly_shard_accessed_collections.js
@@ -65,9 +65,11 @@
DBCollection.prototype.drop = function() {
var dropResult = originalDBCollectionDrop.apply(this, arguments);
- // Attempt to enable sharding on database and collection if not already done.
- shardCollection(this);
-
+ // TODO: Disable sharding collection on OSX until SERVER-28418 is fixed.
+ if (this.getDB().serverBuildInfo().buildEnvironment.target_os !== "macOS") {
+ // Attempt to enable sharding on database and collection if not already done.
+ shardCollection(this);
+ }
return dropResult;
};
}());