summaryrefslogtreecommitdiff
path: root/jstests/disk
diff options
context:
space:
mode:
authorShin Yee Tan <shinyee.tan@mongodb.com>2020-08-05 23:31:05 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-08-06 00:03:34 +0000
commit84ae2755904df75ea8ab79e0595227b04bf02251 (patch)
treea87e65b8facc64a386b7eed51b1c6aab514a690e /jstests/disk
parent262e5a961fa7221bfba5722aeea2db719f2149f5 (diff)
downloadmongo-84ae2755904df75ea8ab79e0595227b04bf02251.tar.gz
SERVER-49103 Validate repair mode should fix up missing and extra index entries
Diffstat (limited to 'jstests/disk')
-rw-r--r--jstests/disk/wt_repair_inconsistent_index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/disk/wt_repair_inconsistent_index.js b/jstests/disk/wt_repair_inconsistent_index.js
index 85124f610df..975b7f50195 100644
--- a/jstests/disk/wt_repair_inconsistent_index.js
+++ b/jstests/disk/wt_repair_inconsistent_index.js
@@ -50,8 +50,8 @@ let runTest = function(mongodOptions) {
mongod = startMongodOnExistingPath(dbpath, mongodOptions);
testColl = mongod.getDB(baseName)[collName];
- // Repair creates new idents.
- assert.neq(indexUri, getUriForIndex(testColl, indexName));
+ // Repair doesn't create new idents because validate repair mode fixed index inconsistencies.
+ assert.eq(indexUri, getUriForIndex(testColl, indexName));
assertQueryUsesIndex(testColl, doc, indexName);
assert.eq(testCollUri, getUriForColl(testColl));