Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Make sure multiple calls to _get_session() aren't nested
Fixes bug 924918 async_call_plugin() acquires a xenapi session as does the nested call to get_xenapi_host(). This can cause a deadlock if multiple greenthreads all block waiting for the outer sessions to be freed to allocate the inner session. This change moves the call to get_xenapi_host() to outside the with statement to ensure calls to _get_session() aren't nested. Change-Id: I8f5490f40a9ccaf74a276187f66519a5d5f52b2e
- Loading branch information