Commit 65e908e
containerd-shim-runc-v2: remove unnecessary
Previous code has already called `getContainer()`, just pass it into
`s.getContainerPids` to reduce unnecessary lock and map lookup.
Signed-off-by: Chen Yiyang <[email protected]>
(cherry picked from commit 6604ff6)
Signed-off-by: Sebastiaan van Stijn <[email protected]>s.getContainer()
1 parent 1dd9ace commit 65e908e
1 file changed
Lines changed: 3 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
461 | 461 | | |
462 | 462 | | |
463 | 463 | | |
464 | | - | |
| 464 | + | |
465 | 465 | | |
466 | 466 | | |
467 | 467 | | |
| |||
663 | 663 | | |
664 | 664 | | |
665 | 665 | | |
666 | | - | |
667 | | - | |
668 | | - | |
669 | | - | |
670 | | - | |
| 666 | + | |
671 | 667 | | |
672 | 668 | | |
673 | 669 | | |
674 | 670 | | |
675 | | - | |
| 671 | + | |
676 | 672 | | |
677 | 673 | | |
678 | 674 | | |
| |||
0 commit comments