Use dispose_pool() from oslo.db
Depricate dispose() in db/api.py and use context_manager.dispose_pool() instread of it. Change-Id: I6f0d108fc00cc7fcfaac1bd8f1b0468fcfbaa0dd
This commit is contained in:
@@ -241,7 +241,7 @@ def _start_workers(workers):
|
||||
# dispose the whole pool before os.fork, otherwise there will
|
||||
# be shared DB connections in child processes which may cause
|
||||
# DB errors.
|
||||
session.dispose()
|
||||
session.context_manager.dispose_pool()
|
||||
|
||||
for worker in process_workers:
|
||||
worker_launcher.launch_service(worker,
|
||||
|
||||
Reference in New Issue
Block a user