Skip to content

Commit 5540a31

Browse files
fix lock acquisition failure
1 parent a5e21f4 commit 5540a31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libraries/Downloader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ export function downloadBinary(binaryInfo: BinaryInfo, options: InternalServerOp
165165

166166
if (options.downloadBinaryOnce) {
167167
const extractedPath = `${dirpath}/${version}`
168-
await fsPromises.mkdir(extractedPath, {recursive: true})
169168

170169
const binaryPath = normalizePath(`${extractedPath}/mysql/bin/mysqld${process.platform === 'win32' ? '.exe' : ''}`)
171170
const archivePath = `${dirpath}/${version}.${fileExtension}`
@@ -180,6 +179,7 @@ export function downloadBinary(binaryInfo: BinaryInfo, options: InternalServerOp
180179

181180
while (true) {
182181
try {
182+
await fsPromises.mkdir(extractedPath, {recursive: true})
183183
releaseFunction = lockSync(extractedPath)
184184
break
185185
} catch (e) {

0 commit comments

Comments
 (0)