]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Move pool dispose() before os.fork
authorGong Zhang <zhanggbj@cn.ibm.com>
Wed, 27 May 2015 09:10:17 +0000 (17:10 +0800)
committerGong Zhang <zhanggbj@cn.ibm.com>
Thu, 28 May 2015 03:13:23 +0000 (11:13 +0800)
commit88e499d1c10eaae59546d9f16c9c9c262766de84
treecc4fc7d51e58cf8b353ae4f6e9aaa3c6bac2bb5e
parent420ca31da23cfe9a49b128cbce2d0b7cd9388974
Move pool dispose() before os.fork

Currently pool dispose() is done after os.fork, but this will
produce shared DB connections in child processes which may lead
to DB errors.

Move pool dispose() before os.fork. This will remove all existing
connections in the parent process and child processes will create
their own new ones.

Change-Id: Ie36417a64f0eb39b53dad61517f834aec37bacfb
Closes-Bug: 1458718
neutron/service.py
neutron/wsgi.py