Remove writer context from _ensure_aggregates
We are already in a writer context, via _set_aggregates, we don't need to ask for it again. This is in preparation of changing the way the retry is done in the _ensure_aggrgates method, in subsequent patches. Change-Id: I1c5c831ae27c3a1936e4782ceccb4d4b39c31b65 Related-Bug: #1804453
This commit is contained in:
parent
b461f6a207
commit
7c7eb5021f
|
@ -511,7 +511,6 @@ def _anchors_for_sharing_providers(context, rp_ids, get_id=False):
|
|||
return set([(r[0], r[1]) for r in context.session.execute(sel).fetchall()])
|
||||
|
||||
|
||||
@db_api.placement_context_manager.writer
|
||||
def _ensure_aggregate(ctx, agg_uuid):
|
||||
"""Finds an aggregate and returns its internal ID. If not found, creates
|
||||
the aggregate and returns the new aggregate's internal ID.
|
||||
|
|
Loading…
Reference in New Issue