Skip to content

Commit 901ca8c

Browse files
build 2 - v1.7.1
1 parent 759f6ef commit 901ca8c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dist/src/libraries/Executor.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const Port_1 = require("./Port");
4848
const path_1 = require("path");
4949
const FileLock_1 = require("./FileLock");
5050
const signal_exit_1 = require("signal-exit");
51-
const crypto = __importStar(require("crypto"));
51+
const crypto_1 = require("crypto");
5252
class Executor {
5353
constructor(logger) {
5454
_Executor_instances.add(this);
@@ -230,8 +230,8 @@ _Executor_instances = new WeakSet(), _Executor_executeFile = function _Executor_
230230
const errorLogFile = `${datadir}/errorlog.err`;
231231
return new Promise(async (resolve, reject) => {
232232
await fsPromises.rm(logFile, { force: true });
233-
const socket = os.platform() === 'win32' ? `MySQL-${crypto.randomUUID()}` : `${dbPath}/m.sock`;
234-
const xSocket = os.platform() === 'win32' ? `MySQLX-${crypto.randomUUID()}` : `${dbPath}/x.sock`;
233+
const socket = os.platform() === 'win32' ? `MySQL-${(0, crypto_1.randomUUID)()}` : `${dbPath}/m.sock`;
234+
const xSocket = os.platform() === 'win32' ? `MySQLX-${(0, crypto_1.randomUUID)()}` : `${dbPath}/x.sock`;
235235
const process = (0, child_process_1.spawn)(binaryFilepath, ['--no-defaults', `--port=${port}`, `--datadir=${datadir}`, `--mysqlx-port=${mySQLXPort}`, `--mysqlx-socket=${xSocket}`, `--socket=${socket}`, `--general-log-file=${logFile}`, '--general-log=1', `--init-file=${dbPath}/init.sql`, '--bind-address=127.0.0.1', '--innodb-doublewrite=OFF', '--mysqlx=FORCE', `--log-error=${errorLogFile}`, `--user=${os.userInfo().username}`], { signal: this.DBDestroySignal.signal, killSignal: 'SIGKILL' });
236236
//resolveFunction is the function that will be called to resolve the promise that stops the database.
237237
//If resolveFunction is not undefined, the database has received a kill signal and data cleanup procedures should run.

0 commit comments

Comments
 (0)