diff options
Diffstat (limited to 'jstests/noPassthrough/index_version_autoupgrade.js')
-rw-r--r-- | jstests/noPassthrough/index_version_autoupgrade.js | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/jstests/noPassthrough/index_version_autoupgrade.js b/jstests/noPassthrough/index_version_autoupgrade.js index c9b4e523448..f6bbb55eee8 100644 --- a/jstests/noPassthrough/index_version_autoupgrade.js +++ b/jstests/noPassthrough/index_version_autoupgrade.js @@ -129,16 +129,6 @@ return coll; }, false); - // Test that the "copydb" command doesn't upgrade existing indexes to the latest version. - testIndexVersionAutoUpgrades(function(coll) { - assert.commandWorked(coll.getDB().adminCommand({ - copydb: 1, - fromdb: coll.getDB().getName(), - todb: "copied", - })); - return coll.getDB().getSiblingDB("copied")[coll.getName()]; - }, false); - // Test that the "cloneCollection" command doesn't upgrade existing indexes to the latest // version. var cloneConn = MongoRunner.runMongod({}); @@ -153,18 +143,5 @@ }, false); MongoRunner.stopMongod(cloneConn); - // Test that the "clone" command doesn't upgrade existing indexes to the latest version. - cloneConn = MongoRunner.runMongod({}); - assert.neq(null, cloneConn, "mongod was unable to start up"); - testIndexVersionAutoUpgrades(function(coll) { - var cloneDB = cloneConn.getDB(coll.getDB().getName()); - assert.commandWorked(cloneDB.runCommand({ - clone: conn.host, - fromDB: coll.getDB().getName(), - })); - return cloneDB[coll.getName()]; - }, false); - MongoRunner.stopMongod(cloneConn); - MongoRunner.stopMongod(conn); })(); |