Skip to content

Commit

Permalink
edits
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Kleinman committed Oct 2, 2012
1 parent 190dd46 commit 112e85c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions source/tutorial/expire-data.txt
Expand Up @@ -64,13 +64,13 @@ following command at the :program:`mongo` shell:

db.log.events.ensureIndex( { "status": 1 }, { expireAfterSeconds: 3600 } )

In this example we assume ``status`` holds date/time information. If in a document in
this collection
the status field is set and is over an hour old,
MongoDB will automatically delete the document.
The ``status`` field *must* hold date/time information. MongoDB will
automatically delete documents from this collection once the value of
``status`` is one or more hours old.

Replication
-----------

The TTL background thread runs on replica set primaries. Any deletions performed by the thread
will replicate to the other members of the set.
The background TTL thread *only* runs on :term:`primaries <primary>`.
All deletions operations replicate normally to the other members of
the set.

0 comments on commit 112e85c

Please sign in to comment.