Commit a04f8c2
committed
containerimage: fix possible race on parallel image create
When image was (externally or in parallel build request) created
in between Update and Create calls, Create can fail.
Handle this case by running Update again.
Signed-off-by: Tonis Tiigi <[email protected]>1 parent 81ee8a1 commit a04f8c2
1 file changed
+12
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
304 | 305 | | |
305 | | - | |
306 | | - | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
307 | 312 | | |
| 313 | + | |
308 | 314 | | |
309 | 315 | | |
310 | 316 | | |
| |||
0 commit comments