summaryrefslogtreecommitdiff
path: root/jstests/repair_server12955.js
blob: 9582e4c78523771da20c6fcf5115ae788b441963 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

mydb = db.getSisterDB( "repair_server12955" );
mydb.dropDatabase()

mydb.foo.ensureIndex({a:"text"})
mydb.foo.insert({a:"hello world"})

before = mydb.stats().dataFileVersion;

mydb.repairDatabase();

after = mydb.stats().dataFileVersion;

assert.eq( before, after );
mydb.dropDatabase();