-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UPSTREAM: 31627: make deep copy of quota objects before mutations #10704
Conversation
Evaluated for origin test up to e815e5b |
continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/8529/) |
@mfojtik lgtm'ed upstream. We should have this. |
@liggitt looking for a second before merging |
LGTM |
[merge] |
@deads2k @smarterclayton - should this have actually merged? On Friday, September 2, 2016, OpenShift Bot [email protected]
|
[merge] |
Evaluated for origin merge up to e815e5b |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/8694/) (Image: devenv-rhel7_4977) |
The code currently makes shallow copies which ensures that we aren't accidentally reslicing anything in weird ways, but the usage maps are pointers, so they end up being shared.
This makes a couple copies when we know we're going to mutate to avoid changing shared maps.
I found this while investigating another problem. [test]
@derekwaynecarr origin pick of upstream change