Removed dispose_pool() from db/api
Change I6f0d108fc00cc7fcfaac1bd8f1b0468fcfbaa0dd deprecated dispose_pool(). Instead of this context_manager.dispose_pool() can be used. Change-Id: I532e37b42f399ab6ca536f360772b1ccbcfb818a
This commit is contained in:
parent
7d17f8c7c3
commit
eca4acea83
|
@ -16,7 +16,6 @@
|
|||
import contextlib
|
||||
import copy
|
||||
|
||||
from debtcollector import removals
|
||||
from neutron_lib import exceptions
|
||||
from oslo_config import cfg
|
||||
from oslo_db import api as oslo_db_api
|
||||
|
@ -189,11 +188,6 @@ def exc_to_retry(etypes):
|
|||
raise db_exc.RetryRequest(e)
|
||||
|
||||
|
||||
@removals.remove(version='newton', removal_version='Ocata')
|
||||
def dispose():
|
||||
context_manager.dispose_pool()
|
||||
|
||||
|
||||
#TODO(akamyshnikova): when all places in the code, which use sessions/
|
||||
# connections will be updated, this won't be needed
|
||||
def get_session(autocommit=True, expire_on_commit=False, use_slave=False):
|
||||
|
|
Loading…
Reference in New Issue