Commit 73bc557
committed
CA-419840 mark CD VBD as empty when its VDI is removed
When a CDR is removed from an ISO SR the corresponding VDI is deleted.
So far we relied on the DB GC to mark the VBD as empty. This creates a
window for a race where the VDI/CD is reported as present when in fact
it is not. So mark the VBD as empty as early as possible.
Signed-off-by: Christian Lindig <christian.lindig@citrix.com>1 parent 1b75c36 commit 73bc557
1 file changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
739 | 739 | | |
740 | 740 | | |
741 | 741 | | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
742 | 754 | | |
743 | 755 | | |
744 | 756 | | |
| |||
0 commit comments