Skip to content

Commit f19f381

Browse files
committed
CA-408230: Check destroy op valid for HA metadata VDI with type redo_log
As xha_metadata_vdi is of type `redo_log. This is why the destroy operation was not missing for the HA metadata VDI after HA is disabled. Signed-off-by: Gang Ji <[email protected]>
1 parent 7e8836f commit f19f381

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ocaml/xapi/xapi_vdi.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,12 +345,12 @@ let check_operation_error ~__context ?sr_records:_ ?(pbd_records = [])
345345
then
346346
Error (Api_errors.ha_is_enabled, [])
347347
else if
348-
List.mem record.Db_actions.vDI_type [`ha_statefile; `metadata]
348+
List.mem record.Db_actions.vDI_type [`ha_statefile; `redo_log]
349349
&& Xapi_pool_helpers.ha_enable_in_progress ~__context
350350
then
351351
Error (Api_errors.ha_enable_in_progress, [])
352352
else if
353-
List.mem record.Db_actions.vDI_type [`ha_statefile; `metadata]
353+
List.mem record.Db_actions.vDI_type [`ha_statefile; `redo_log]
354354
&& Xapi_pool_helpers.ha_disable_in_progress ~__context
355355
then
356356
Error (Api_errors.ha_disable_in_progress, [])

0 commit comments

Comments
 (0)