Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

*: consolidate excessive Hash/Unit requests #1376

Merged

Conversation

jonboulle
Copy link
Contributor

Picks up #1260

jonboulle added a commit that referenced this pull request Oct 12, 2015
…requests

*: consolidate excessive Hash/Unit requests
@jonboulle jonboulle merged commit 429f9cf into coreos:master Oct 12, 2015
@jonboulle jonboulle deleted the mwitkow-io-bugfix/1257-units-requests branch February 3, 2016 11:01
kayrus added a commit to endocode/fleet that referenced this pull request Mar 30, 2016
Resolves coreos#1514

The problem was caused by the [code optimization](coreos#1376). Before that each unit was stored in its own variable. Then this code was optimized and units became stored in hash map (`getAllUnitsHashMap`). Each hash was assigned to the unit's pointer. And when template unit was checked by `requirements()` function, its content was modified by `values[i] = unitPrintf(v, *uni)` code. Once templated unit was modified, all related units (which have same hash) were modified too, because they are related to one pointer.
kayrus added a commit to endocode/fleet that referenced this pull request Mar 31, 2016
Resolves coreos#1514

The problem was caused by the [code optimization](coreos#1376). Before that each unit was stored in its own variable. Then this code was optimized and units became stored in hash map (`getAllUnitsHashMap`). Each hash was assigned to the unit's pointer. And when template unit was checked by `requirements()` function, its content was modified by `values[i] = unitPrintf(v, *uni)` code. Once templated unit was modified, all related units (which have same hash) were modified too, because they are related to one pointer.
kayrus added a commit to endocode/fleet that referenced this pull request Mar 31, 2016
Resolves coreos#1514

The problem was caused by the [code optimization](coreos#1376). Before that each unit was stored in its own variable. Then this code was optimized and units became stored in hash map (`getAllUnitsHashMap`). Each hash was assigned to the unit's pointer. And when template unit was checked by `requirements()` function, its content was modified by `values[i] = unitPrintf(v, *uni)` code. Once templated unit was modified, all related units (which have same hash) were modified too, because they are related to one pointer.
hectorj2f pushed a commit to giantswarm/fleet that referenced this pull request Apr 6, 2016
Resolves coreos#1514

The problem was caused by the [code optimization](coreos#1376). Before that each unit was stored in its own variable. Then this code was optimized and units became stored in hash map (`getAllUnitsHashMap`). Each hash was assigned to the unit's pointer. And when template unit was checked by `requirements()` function, its content was modified by `values[i] = unitPrintf(v, *uni)` code. Once templated unit was modified, all related units (which have same hash) were modified too, because they are related to one pointer.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant