Skip to content
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

Paths nits #2472

Merged
merged 2 commits into from
Jun 16, 2020
Merged

Paths nits #2472

merged 2 commits into from
Jun 16, 2020

Conversation

kolyshkin
Copy link
Contributor

This is a fixup for

  1. using GetPaths() instead of Path()
  2. accessing m.paths map without lock

mostly introduced by #2338 and #2391.

Since commit 714c91e, method GetPaths() should only be used
for saving container state. For other uses, we have a new method,
Path(), which is cleaner.

Fix GetPaths() usage introduced by recent commits 859a780 and 9087f2e.

Signed-off-by: Kir Kolyshkin <[email protected]>
This fixes a few cases of accessing m.paths map directly without holding
the mutex lock.

Fixes: 9087f2e
Signed-off-by: Kir Kolyshkin <[email protected]>
@kolyshkin
Copy link
Contributor Author

@AkihiroSuda @lifubang @mrunalp @cyphar PTAL

@mrunalp mrunalp merged commit 55c77cb into opencontainers:master Jun 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants