Merge "Remove writer context from _ensure_aggregates"

This commit is contained in:
Zuul 2018-12-18 16:04:55 +00:00 committed by Gerrit Code Review
commit 7eb38347cb
1 changed files with 0 additions and 1 deletions

View File

@ -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.