Permalink
Browse files

CA-88376: Reset the nbd_mirror_failed flag when disabling mirroring

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
  • Loading branch information...
1 parent e1a392b commit 227d89707b413c5d3da54ee88faad4981dae0fd0 @jonludlam jonludlam committed Aug 8, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 drivers/tapdisk-vbd.c
View
@@ -281,6 +281,7 @@ tapdisk_vbd_add_secondary(td_vbd_t *vbd)
DPRINTF("Removing secondary image\n");
vbd->secondary_mode = TD_VBD_SECONDARY_DISABLED;
vbd->secondary = NULL;
+ vbd->nbd_mirror_failed = 0;
return 0;
}

0 comments on commit 227d897

Please sign in to comment.