Temporarily disable bulk operations b/c old mongo

does too much work on exit and doesn't handle nesting
This commit is contained in:
Don Mitchell
2014-09-04 17:20:09 -04:00
parent 23d3a9187c
commit b28af4fdaa
5 changed files with 15 additions and 4 deletions

View File

@@ -423,7 +423,7 @@ def course_index(request, course_key):
"""
# A depth of None implies the whole course. The course outline needs this in order to compute has_changes.
# A unit may not have a draft version, but one of its components could, and hence the unit itself has changes.
with modulestore().bulk_operations(course_key):
with modulestore().bulk_temp_noop_operations(course_key): # FIXME
course_module = _get_course_module(course_key, request.user, depth=None)
lms_link = get_lms_link_for_item(course_module.location)
sections = course_module.get_children()