@xen-orchestra/backups 0.18.2 → 0.18.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "type": "git",
9
9
  "url": "https://github.com/vatesfr/xen-orchestra.git"
10
10
  },
11
- "version": "0.18.2",
11
+ "version": "0.18.3",
12
12
  "engines": {
13
13
  "node": ">=14.6"
14
14
  },
@@ -36,7 +36,7 @@
36
36
  "proper-lockfile": "^4.1.2",
37
37
  "pump": "^3.0.0",
38
38
  "uuid": "^8.3.2",
39
- "vhd-lib": "^2.1.0",
39
+ "vhd-lib": "^3.0.0",
40
40
  "yazl": "^2.5.1"
41
41
  },
42
42
  "peerDependencies": {
@@ -40,7 +40,14 @@ exports.DeltaBackupWriter = class DeltaBackupWriter extends MixinBackupWriter(Ab
40
40
  await asyncMap(vhds, async path => {
41
41
  try {
42
42
  await checkVhdChain(handler, path)
43
- found = found || (await adapter.isMergeableParent(packedBaseUuid, path))
43
+ // Warning, this should not be written as found = found || await adapter.isMergeableParent(packedBaseUuid, path)
44
+ //
45
+ // since all the checks of a path are done in parallel, found would be containing
46
+ // only the last answer of isMergeableParent which is probably not the right one
47
+ // this led to the support tickets https://help.vates.fr/#ticket/zoom/4751 , 4729, 4665 and 4300
48
+
49
+ const isMergeable = await adapter.isMergeableParent(packedBaseUuid, path)
50
+ found = found || isMergeable
44
51
  } catch (error) {
45
52
  warn('checkBaseVdis', { error })
46
53
  await ignoreErrors.call(VhdAbstract.unlink(handler, path))