summaryrefslogtreecommitdiff
path: root/jstests/mmap_v1/list_indexes2.js
blob: b235ddf3b0bbe9585ec3229f67786b5cfcf24481 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// test listIndexes compatability command and system.indexes

t = db.list_indexes2;
t.drop();

t.insert( { x : 1 } );

assert.eq( t._getIndexesSystemIndexes(),
           t._getIndexesCommand() );

t.ensureIndex( { x : 1 } );

assert.eq( t._getIndexesSystemIndexes(),
           t._getIndexesCommand() );

assert.eq( t.getIndexes(),
           t._getIndexesCommand() );