diff options
author | Zane Bitter <zbitter@redhat.com> | 2019-10-09 11:14:10 -0400 |
---|---|---|
committer | Zane Bitter <zbitter@redhat.com> | 2019-10-09 21:55:49 -0400 |
commit | df1aad961cd804af46d1039c823533de8da9cec2 (patch) | |
tree | 0ffc666497a159ed25fe459cdc4ee6e0c6386236 /setup.cfg | |
parent | 008346fd3a9c101cf2c2343cd118dc1495b1fcb6 (diff) | |
download | heat-df1aad961cd804af46d1039c823533de8da9cec2.tar.gz |
DB: Remove unnecessary subtransactions=True
It is only necessary to pass subtransactions=True to session.begin()
when the new transactions may be called from inside an existing
transaction. There is *no* need to pass it from the top level
transaction in anticipation that there may be subtransactions. The
sqlalchemy docs are not 100% clear on this so we were doing both to be
sure to be sure, but we have confirmed that the latter is not required.
Since passing subtransactions=True when it is not required may cover up
other problems, remove it except in those cases where we know the API
may be called as a subtransaction.
Change-Id: I34cbd3526aef79132f6d97569d48a347e904ab75
Task: 37000
Diffstat (limited to 'setup.cfg')
0 files changed, 0 insertions, 0 deletions