]> 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>
Mon, 8 Jun 2015 09:48:51 +0000 (17:48 +0800)
commit2884595c96f331facb11510057d68d5a01bb4747
tree698a84b3e9e832c91a4cea568e14176133997477
parente459d2d3ca936d93b7eabe42b040409972b47ce5
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.

(cherry-picked from 88e499d1c10eaae59546d9f16c9c9c262766de84)

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