Commit 5c9d090
committed
lxd/images: Support retrying image record deletion in autoUpdateImages
Previously the tx.DeleteImage error was not returned to the calling s.DB.Cluster.Transaction
function which meant the built in retry logic LXD has when the table is locked was not being
used. Instead return the error and let the retry mechanisms have a go at retrying the request.
Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>1 parent c83b9c1 commit 5c9d090
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2004 | 2004 | | |
2005 | 2005 | | |
2006 | 2006 | | |
2007 | | - | |
| 2007 | + | |
2008 | 2008 | | |
2009 | 2009 | | |
2010 | 2010 | | |
2011 | 2011 | | |
2012 | | - | |
| 2012 | + | |
2013 | 2013 | | |
2014 | 2014 | | |
2015 | 2015 | | |
2016 | 2016 | | |
2017 | 2017 | | |
| 2018 | + | |
| 2019 | + | |
| 2020 | + | |
2018 | 2021 | | |
2019 | 2022 | | |
2020 | 2023 | | |
| |||
0 commit comments