]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add use_slave DB api support
authorAndy Hill <hillad@gmail.com>
Mon, 20 Apr 2015 17:00:28 +0000 (13:00 -0400)
committerAndy Hill <hillad@gmail.com>
Wed, 22 Apr 2015 12:58:02 +0000 (08:58 -0400)
commitd506b50badda7af30d1154561acd45caef44ca11
tree12d16468f9e300f44da43e88b5c5a6c807381b3c
parented209643f110204894edb801e0795ff39b4d7df2
Add use_slave DB api support

The example configuration refers to slave_connection[1] but slaves aren't used
in the codebase. This change will enable plugin authors to use
slave_connection by passing use_slave=True to the SQLAlchemy session[2][3].

[1] http://docs.openstack.org/juno/config-reference/content/section_neutron.conf.html
[2] http://docs.openstack.org/developer/oslo.db/api/sqlalchemy/session.html#oslo_db.sqlalchemy.session.EngineFacade.get_session
[3] https://wiki.openstack.org/wiki/Slave_usage

Change-Id: I6f46c11fad5c58577654a4011cf82d19f6d3e1e3
neutron/db/api.py