fix(vhd-lib/merge): reduce concurrency to protect slower backends (#6400)

This commit is contained in:
Florent BEAUCHAMP 2022-09-02 11:00:53 +02:00 committed by GitHub
parent ea4a888c5e
commit 62591e1f6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,7 +123,7 @@ module.exports.mergeVhdChain = limitConcurrency(2)(async function mergeVhdChain(
childIsVhdDirectory = childVhd instanceof VhdDirectory
}
const concurrency = parentIsVhdDirectory && childIsVhdDirectory ? 16 : 1
const concurrency = parentIsVhdDirectory && childIsVhdDirectory ? 2 : 1
if (mergeState === undefined) {
// merge should be along a vhd chain
assert.strictEqual(UUID.stringify(childVhd.header.parentUuid), UUID.stringify(parentVhd.footer.uuid))