Commit 25291b90 authored by nanahira's avatar nanahira

autocommit is not needed

parent dc9b213a
Pipeline #882 passed with stages
in 6 minutes and 47 seconds
...@@ -77,7 +77,6 @@ export class SMBReader { ...@@ -77,7 +77,6 @@ export class SMBReader {
this.log.debug(`File ${filePath} has already been read. Skipping.`); this.log.debug(`File ${filePath} has already been read. Skipping.`);
continue; continue;
} }
await db.query("set autocommit=0");
await db.beginTransaction(); await db.beginTransaction();
this.log.info(`Reading file ${filePath}...`); this.log.info(`Reading file ${filePath}...`);
const fileMetadata = await db.query("insert into `filesRead` set ?", { const fileMetadata = await db.query("insert into `filesRead` set ?", {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment