summaryrefslogtreecommitdiff
path: root/kombu/transport/mongodb.py
diff options
context:
space:
mode:
authorFlaper Fesp <flaper87@gmail.com>2012-09-12 22:06:52 +0200
committerFlaper Fesp <flaper87@gmail.com>2012-09-12 22:06:52 +0200
commit19887efbc9b338ae03937e783697eaf8fc92dd7c (patch)
tree31b82ecc3da76df30f0f0293ce846be86a07a965 /kombu/transport/mongodb.py
parentb3730169af8f23858aa20f0a8b633ef28d0c62c0 (diff)
downloadkombu-19887efbc9b338ae03937e783697eaf8fc92dd7c.tar.gz
#158: Added background to the recently added compound index and some notes to the changelog
Diffstat (limited to 'kombu/transport/mongodb.py')
-rw-r--r--kombu/transport/mongodb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kombu/transport/mongodb.py b/kombu/transport/mongodb.py
index 90a048c9..aeaceefb 100644
--- a/kombu/transport/mongodb.py
+++ b/kombu/transport/mongodb.py
@@ -144,7 +144,7 @@ class Channel(virtual.Channel):
# database.authenticate(conninfo.userid, conninfo.password)
self.db = database
col = database.messages
- col.ensure_index([('queue', 1), ('_id', 1)])
+ col.ensure_index([('queue', 1), ('_id', 1)], background=True)
if 'messages.broadcast' not in database.collection_names():
capsize = conninfo.transport_options.get(