commit 3c2d75d60a1d11726905a9a3f8eb745b4e4ad4cd
Author: Marian Horban <email address hidden>
Date: Mon Dec 7 07:30:11 2015 -0500
Replace copy.deepcopy of RequestContext with copy.copy
Instance of RequestContext contains many objects and some of them like
mutexes could not be copied. Also a deepcopy of the entire
RequestContext wastes CPU time.
To avoid problems with deepcopy and avoid performance overhead this
patch changes deepcopy of RequestContext to shallow copy and makes
deepcopy of only the 'roles' member because of security issue
LP #1386932.
Reviewed: https:/ /review. openstack. org/288529 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=3c2d75d60a1 d11726905a9a3f8 eb745b4e4ad4cd
Committed: https:/
Submitter: Jenkins
Branch: stable/liberty
commit 3c2d75d60a1d117 26905a9a3f8eb74 5b4e4ad4cd
Author: Marian Horban <email address hidden>
Date: Mon Dec 7 07:30:11 2015 -0500
Replace copy.deepcopy of RequestContext with copy.copy
Instance of RequestContext contains many objects and some of them like
mutexes could not be copied. Also a deepcopy of the entire
RequestContext wastes CPU time.
To avoid problems with deepcopy and avoid performance overhead this
patch changes deepcopy of RequestContext to shallow copy and makes
deepcopy of only the 'roles' member because of security issue
LP #1386932.
Closes-Bug: #1506958 cd0ec7bf0754587 89d6fb06e99 a9c653dce2baf38 d0623e25ee)
Related-Bug: #1386932
Change-Id: I1e2c00e95e1c4b
(cherry picked from commit 82457f2462621b6