Commit 80052ae
committed
CA-86883: Detach SR if SR.destroy fails
The storage backend can destroy an SR only if it is attached.
Therefore when xapi wants to destroy an SR, first it attaches it.
When the backend destroys the SR it is no longer attached.
This change adds exception handling so that if the backend fails
to destroy the SR, xapi will detach it.1 parent 18e7e90 commit 80052ae
1 file changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1151 | 1151 | | |
1152 | 1152 | | |
1153 | 1153 | | |
1154 | | - | |
1155 | | - | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
1156 | 1163 | | |
1157 | 1164 | | |
1158 | 1165 | | |
| |||
0 commit comments