switch to reader context
Bug #1859258 reported by
zhanghao
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Low
|
zhanghao |
Bug Description
The mtu is already non-nullable, so the writer context can be switched to a reader context.
like this can be removed, and change it.
# NOTE(ihrachys) use writer manager to be able to update mtu
# TODO(ihrachys) remove in Queens when mtu is not nullable
with db_api.
In addition, redundant reader context can be removed.
def _get_subnet
# TODO(ihrachys) remove explicit reader usage when subnet OVO switches
# to engine facade by default
with db_api.
Changed in neutron: | |
assignee: | nobody → zhanghao (zhanghao2) |
Changed in neutron: | |
status: | New → In Progress |
Changed in neutron: | |
importance: | Undecided → Low |
To post a comment you must log in.
Reviewed: https:/ /review. opendev. org/701909 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=af274fa826f c97c15f9fe9b51a 966caa8c5cf2eb
Committed: https:/
Submitter: Zuul
Branch: master
commit af274fa826fc97c 15f9fe9b51a966c aa8c5cf2eb
Author: zhanghao <email address hidden>
Date: Tue Jan 7 03:18:12 2020 -0500
Switch to reader context
Since the mtu is already non-nullable, the writer context
can be switched to a reader context. In addition, the redundant
reader context can be removed.
Change-Id: I482a3892dee8ee 94ab70142cf734f 71e766178ed
Closes-Bug: #1859258