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

repository2: populate reverseLayers correctly #185

Merged
merged 2 commits into from
Jul 27, 2016

Conversation

iaguis
Copy link
Member

@iaguis iaguis commented Jul 25, 2016

In da56c93 we introduced an optimization to avoid going through all the
layers every time we need the index of a specific one.

However, when we set the layer index, we weren't setting the reversed
index, like we were doing before the optimization.

Fix it by setting the correct index.

Fixes #184

In da56c93 we introduced an optimization to avoid going through all the
layers every time we need the index of a specific one.

However, when we set the layer index, we weren't setting the reversed
index, like we were doing before the optimization.

Fix it by setting the correct index.
@jonboulle
Copy link
Contributor

Test?

@iaguis
Copy link
Member Author

iaguis commented Jul 26, 2016

Added a test.

@jonboulle
Copy link
Contributor

@dgonyeo review?

@cgonyeo
Copy link
Member

cgonyeo commented Jul 27, 2016

LGTM

@jonboulle jonboulle merged commit 9ca30ca into appc:master Jul 27, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants