diff options
author | James Wahlin <james.wahlin@10gen.com> | 2015-03-06 10:12:36 -0500 |
---|---|---|
committer | James Wahlin <james.wahlin@10gen.com> | 2015-03-26 10:08:16 -0400 |
commit | e34242b19ffabd9cf670dcb9fca513dccb81abb3 (patch) | |
tree | 9368148ca12cf42cd745ab07abf2f64974b901e0 /jstests/sharding/sharding_system_namespaces.js | |
parent | 8136a4d3138ab17188e6eab14c42cf61444f901b (diff) | |
download | mongo-e34242b19ffabd9cf670dcb9fca513dccb81abb3.tar.gz |
SERVER-16685 use buildInfo over 32bit check for WT
Diffstat (limited to 'jstests/sharding/sharding_system_namespaces.js')
-rw-r--r-- | jstests/sharding/sharding_system_namespaces.js | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/jstests/sharding/sharding_system_namespaces.js b/jstests/sharding/sharding_system_namespaces.js index 7d8121da24a..1265b9ecb48 100644 --- a/jstests/sharding/sharding_system_namespaces.js +++ b/jstests/sharding/sharding_system_namespaces.js @@ -17,9 +17,13 @@ var db = st.s.getDB("test"); var coll = db.sharding_system_namespaces; // This test relies on the wiredTiger storage engine being compiled -// into the server. This assumption does not hold on 32-bit platforms. -// See SERVER-16660. -if (db.serverBuildInfo().bits != 32) { +// into the server. Must check shard member for WT as it is not built into mongos. + +var storageEngines = st.shard0.getDB("local").serverBuildInfo().storageEngines; + +print("Supported storage engines: " + storageEngines); + +if (storageEngines.indexOf("wiredTiger") >= 0) { function checkCollectionOptions(database) { var collectionsInfos = database.getCollectionInfos(); @@ -61,3 +65,6 @@ if (db.serverBuildInfo().bits != 32) { checkCollectionOptions(anotherShard.getDB("test")); } +else { + print("Skipping test. wiredTiger engine not supported by mongod binary.") +} |