diff --git a/neutron/db/api.py b/neutron/db/api.py index 4418bbc2825..3a2752ae1bc 100644 --- a/neutron/db/api.py +++ b/neutron/db/api.py @@ -46,11 +46,12 @@ def dispose(): get_engine().pool.dispose() -def get_session(autocommit=True, expire_on_commit=False): +def get_session(autocommit=True, expire_on_commit=False, use_slave=False): """Helper method to grab session.""" facade = _create_facade_lazily() return facade.get_session(autocommit=autocommit, - expire_on_commit=expire_on_commit) + expire_on_commit=expire_on_commit, + use_slave=use_slave) @contextlib.contextmanager