forked from kata-containers/agent
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
network: Don't store the network info as pointers
By storing the network information such as routes and interfaces as pointers, we end up having issues if we try to remove some elements from the list as the same time this list is parsed through a for loop. This allows for a proper duplication of the data, so that we can actually modify the global lists maintained by the pod, while we loop over every item of the same lists. Fixes kata-containers#226 Signed-off-by: Sebastien Boeuf <[email protected]>
- Loading branch information
Sebastien Boeuf
committed
Apr 27, 2018
1 parent
74e720e
commit acc84bd
Showing
1 changed file
with
10 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters