Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure to store context in thread local after spawn/spawn_n
https://review.openstack.org/#/c/171299/ introduces a wrapper for utils.spawn_n to update context in thread local store. However, there are other routines in driver code which calls greenthread.spawn or greenthread.spawn_n, so that they will not update context in thread local store. The commit adds utils.spawn as a new wrapper, and also make those codes call spawn/spawn_n of utils, in order to ensure the context of logging is correct. Change-Id: I3623e60c49e442e2431cf017540422aa59bc285a Related-Bug: 1404268 (cherry picked from commit 7f293ec)
- Loading branch information
1 parent
fc7f1ab
commit 48a6217
Showing
5 changed files
with
44 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters