Commit 25b99097 by Calen Pennington

Merge pull request #3 from edx/auto-reconnect-find-one

Handle AutoReconnect errors in find_one.
parents efe14679 751145c6
...@@ -23,7 +23,14 @@ log = logging.getLogger(__name__) ...@@ -23,7 +23,14 @@ log = logging.getLogger(__name__)
MONGO_METHODS_NEEDING_RETRY = { MONGO_METHODS_NEEDING_RETRY = {
pymongo.collection.Collection: [ pymongo.collection.Collection: [
'aggregate', 'ensure_index', 'find', 'group', 'inline_map_reduce', 'map_reduce', 'parallel_scan' 'aggregate',
'ensure_index',
'find',
'find_one',
'group',
'inline_map_reduce',
'map_reduce',
'parallel_scan',
], ],
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment