Skip to content

Commit

Permalink
[#3481] comment explaining approach
Browse files Browse the repository at this point in the history
  • Loading branch information
wardi committed Mar 16, 2017
1 parent 81d9e44 commit 0e35ecf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ckanext/datastore/logic/action.py
Expand Up @@ -562,6 +562,9 @@ def set_datastore_active_flag(model, data_dict, flag):
Called after creation or deletion of DataStore table.
'''
# We're modifying the resource extra directly here to avoid a
# race condition, see issue #3245 for details and plan for a
# better fix
update_dict = {'datastore_active': flag}

# get extras(for entity update) and package_id(for search index update)
Expand Down

0 comments on commit 0e35ecf

Please sign in to comment.