diff --git a/lib/galaxy/tools/actions/upload_common.py b/lib/galaxy/tools/actions/upload_common.py index a5460c08efa0..b0fb794a409b 100644 --- a/lib/galaxy/tools/actions/upload_common.py +++ b/lib/galaxy/tools/actions/upload_common.py @@ -140,8 +140,6 @@ def __new_history_upload(trans, uploaded_dataset, history=None, state=None): hda.state = state else: hda.state = hda.states.QUEUED - with transaction(trans.sa_session): - trans.sa_session.commit() history.add_dataset(hda, genome_build=uploaded_dataset.dbkey, quota=False) permissions = trans.app.security_agent.history_get_default_permissions(history) trans.app.security_agent.set_all_dataset_permissions(hda.dataset, permissions, new=True, flush=False)