Commit c976ee8
Add loader state checks for start commands.
In a normal startup sequence, StartRoot() is called on a "created"
Loader. Then StartSubcontainer() is called on a "started" Loader for
all sub-containers in the Pod.
We do not want to allow either start methods to be called on a restoring
container, otherwise, it can put the sandbox is a weird state.
PiperOrigin-RevId: 8315840191 parent 8213f69 commit c976ee8
1 file changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
273 | 279 | | |
274 | 280 | | |
275 | 281 | | |
| |||
366 | 372 | | |
367 | 373 | | |
368 | 374 | | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
369 | 381 | | |
370 | 382 | | |
371 | 383 | | |
| |||
0 commit comments