badmfck-api-server 2.3.5 → 2.3.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -218,11 +218,6 @@ class MysqlService extends BaseService_1.BaseService {
|
|
218
218
|
message: "Transaction not found"
|
219
219
|
};
|
220
220
|
}
|
221
|
-
if (this.debug)
|
222
|
-
console.log("Rollback transaction:", trx);
|
223
|
-
this.transactions = this.transactions.filter(i => i.id !== tid);
|
224
|
-
if (this.debug)
|
225
|
-
console.log("Transaction pool:", this.transactions);
|
226
221
|
this.rollbackTransaction(trx);
|
227
222
|
return null;
|
228
223
|
};
|
@@ -364,7 +359,7 @@ class MysqlService extends BaseService_1.BaseService {
|
|
364
359
|
console.log("Store transaction fail report: ", file, trx, message);
|
365
360
|
if (!this.failReportFileStream)
|
366
361
|
this.failReportFileStream = fs_1.default.createWriteStream(file, { flags: 'a' });
|
367
|
-
this.failReportFileStream.write(JSON.stringify({ queries: trx.queries, time: trx.timestamp, date, message }) + "\n{
|
362
|
+
this.failReportFileStream.write(JSON.stringify({ queries: trx.queries, time: trx.timestamp, date, message }) + "\n}EOB{\n", err => {
|
368
363
|
if (err)
|
369
364
|
(0, LogService_1.logCrit)("${MysqlService.js}", "Can't write to transaction fail report file");
|
370
365
|
else
|