diff options
author | Yuhong Zhang <yuhong.zhang@mongodb.com> | 2022-04-06 13:43:43 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-04-06 16:09:35 +0000 |
commit | 38e40422c04e118cd55986945cc6c31918187f9b (patch) | |
tree | 6343de0c8892a23e40e2444d3ca831af4fbf120c /jstests/libs | |
parent | 46c459b82f0462c340ade979057324c34b4dc580 (diff) | |
download | mongo-38e40422c04e118cd55986945cc6c31918187f9b.tar.gz |
SERVER-63577 Introduce new unique index data formats
Diffstat (limited to 'jstests/libs')
-rw-r--r-- | jstests/libs/check_unique_indexes.js | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/jstests/libs/check_unique_indexes.js b/jstests/libs/check_unique_indexes.js index b64532c98f8..abbb9bb536f 100644 --- a/jstests/libs/check_unique_indexes.js +++ b/jstests/libs/check_unique_indexes.js @@ -35,15 +35,13 @@ function checkUniqueIndexFormatVersion(adminDB) { .storageStats.indexDetails[index.name] .metadata.formatVersion; if (index.v === 2) { - assert.eq( - ifv, - 12, - "Expected index format version 12 for unique index: " + tojson(index)); + assert(ifv == 12 || ifv == 14, + "Expected index format version 12 or 14 for unique index: " + + tojson(index)); } else { - assert.eq( - ifv, - 11, - "Expected index format version 11 for unique index: " + tojson(index)); + assert(ifv == 11 || ifv == 13, + "Expected index format version 11 or 13 for unique index: " + + tojson(index)); } } }); |