Skip to content

Commit 7fdb9cd

Browse files
author
David Scott
committed
HACK: disable incremental copies during storage mirroring
The content_id on ffs is usually "", leading to erroneous incremental copies. Signed-off-by: David Scott <[email protected]>
1 parent 8d71be0 commit 7fdb9cd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ocaml/xapi/storage_migrate.ml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,12 +223,14 @@ let copy' ~task ~dbg ~sr ~vdi ~url ~dest ~dest_vdi =
223223

224224
let on_fail : (unit -> unit) list ref = ref [] in
225225

226-
let base_vdi =
226+
let base_vdi =
227+
(*
227228
try
228229
let x = (List.find (fun x -> x.content_id = dest_content_id) vdis).vdi in
229230
debug "local VDI %s has content_id = %s; we will perform an incremental copy" x dest_content_id;
230231
Some x
231232
with _ ->
233+
*)
232234
debug "no local VDI has content_id = %s; we will perform a full copy" dest_content_id;
233235
None
234236
in

0 commit comments

Comments
 (0)