浏览代码

Merge "Make network support read and write separation"

changes/90/695790/1
Zuul 2 个月前
父节点
当前提交
3c1139c216
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. +1
    -3
      neutron/plugins/ml2/plugin.py

+ 1
- 3
neutron/plugins/ml2/plugin.py 查看文件

@@ -1139,9 +1139,7 @@ class Ml2Plugin(db_base_plugin_v2.NeutronDbPluginV2,

@db_api.retry_if_session_inactive()
def get_network(self, context, id, fields=None):
# NOTE(ihrachys) use writer manager to be able to update mtu
# TODO(ihrachys) remove in Queens+ when mtu is not nullable
with db_api.CONTEXT_WRITER.using(context):
with db_api.CONTEXT_READER.using(context):
net_db = self._get_network(context, id)

net_data = self._make_network_dict(net_db, context=context)

正在加载...
取消
保存