diff options
author | Max Hirschhorn <max.hirschhorn@mongodb.com> | 2014-10-13 11:26:11 -0400 |
---|---|---|
committer | Max Hirschhorn <max.hirschhorn@mongodb.com> | 2014-10-13 22:16:18 -0400 |
commit | 1a44dc6a150524de75dd46c8dc464c7182a37389 (patch) | |
tree | cc570f70678f39fc0be4f3ee9b51cf6c1fb5e9f4 /jstests/noPassthroughWithMongod/ttl1.js | |
parent | aa31cae71bc5390fc02d48fc793eebb1991d0ff3 (diff) | |
download | mongo-1a44dc6a150524de75dd46c8dc464c7182a37389.tar.gz |
SERVER-15570 Avoid querying system.indexes in ttl.cpp.
Changed so that the TTL indexes are processed in multiple phases:
- Acquire an IS-mode lock on the database and find all of the
TTL indexes
For each TTL index,
- Acquire an IX-mode lock on the collection and delete all of the
expired documents
Also avoid checking `userFlags` of collection stats in TTL index
tests since it is not set by some storage engines.
Diffstat (limited to 'jstests/noPassthroughWithMongod/ttl1.js')
-rw-r--r-- | jstests/noPassthroughWithMongod/ttl1.js | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/jstests/noPassthroughWithMongod/ttl1.js b/jstests/noPassthroughWithMongod/ttl1.js index 3ce494bc2ef..a2d923fc9f5 100644 --- a/jstests/noPassthroughWithMongod/ttl1.js +++ b/jstests/noPassthroughWithMongod/ttl1.js @@ -51,9 +51,7 @@ var msg = RegExp("ttl indexes require the expireAfterSeconds" + assertEntryMatches(log, msg); // Part 2 -assert.eq( 0, t.stats().userFlags ); t.ensureIndex( { x : 1 } , { expireAfterSeconds : 20000 } ); -assert.eq( 1, t.stats().userFlags ); assert.soon( function() { |