diff options
author | Shaun Verch <shaun.verch@10gen.com> | 2014-02-12 10:31:24 -0500 |
---|---|---|
committer | Shaun Verch <shaun.verch@10gen.com> | 2014-02-12 13:29:32 -0500 |
commit | e42c285567ffae3d562b9743bf073cf25624b279 (patch) | |
tree | 86150cf2c17f44cbf00d39f4cb55769e1ff0caa8 /jstests | |
parent | c8fdb667a2a461dfa1ea2f76791a1a1f94a2c729 (diff) | |
download | mongo-e42c285567ffae3d562b9743bf073cf25624b279.tar.gz |
SERVER-12092 Uncommented no longer failing test
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/multiVersion/libs/data_generators.js | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/jstests/multiVersion/libs/data_generators.js b/jstests/multiVersion/libs/data_generators.js index 8730a7a1cab..dd7700d74de 100644 --- a/jstests/multiVersion/libs/data_generators.js +++ b/jstests/multiVersion/libs/data_generators.js @@ -527,6 +527,15 @@ function IndexDataGenerator(options) { return attributes; } + function GenTextIndexOptions(seed) { + var attributes = GenIndexOptions(seed); + // When using a text index, the following additional index properties are required when + // downgrading from 2.6: + // { "textIndexVersion" : 1 } + attributes["textIndexVersion"] = 1 + return attributes; + } + testIndexes = [ // Single Field Indexes { "spec" : GenSingleFieldIndex(1), "options" : GenIndexOptions(0) }, @@ -558,8 +567,7 @@ function IndexDataGenerator(options) { { "spec" : GenHaystackIndex(9), "options" : GenHaystackIndexOptions(13) }, // Text Indexes - // XXX: This doesn't when dumping from 2.4. See SERVER-12092 - // { "spec" : GenTextIndex(10), "options" : GenIndexOptions(14) }, + { "spec" : GenTextIndex(10), "options" : GenTextIndexOptions(14) }, // Hashed Index { "spec" : GenHashedIndex(10), "options" : GenIndexOptions(14) }, |