Merge "Replace deprecated with_lockmode with with_for_update"

This commit is contained in:
Zuul 2019-06-27 16:14:42 +00:00 committed by Gerrit Code Review
commit 42b2e0fc6d
1 changed files with 1 additions and 1 deletions

View File

@ -1413,7 +1413,7 @@ def _quota_reservations(session, context, reservations):
read_deleted="no",
session=session).\
filter(models.Reservation.uuid.in_(reservations)).\
with_lockmode('update').\
with_for_update().\
all()