duplicator fixes

This commit is contained in:
Jan Prochazka 2023-02-17 10:26:44 +01:00
parent 6b783027e5
commit 7802cde14d
3 changed files with 3 additions and 1 deletions

View File

@ -255,7 +255,7 @@ export class DataDuplicator {
} catch (err) {
logger.error({ err }, 'Failed duplicator job, rollbacking');
await runCommandOnDriver(this.pool, this.driver, dmp => dmp.rollbackTransaction());
throw err;
return;
}
if (this.options.rollbackAfterFinish) {
logger.info('Rollbacking transaction, nothing was changed');

View File

@ -158,6 +158,7 @@
const handleRunnerDone = () => {
busy = false;
timerLabel.stop();
};
export function canKill() {

View File

@ -35,6 +35,7 @@ const dialect = {
dropCheck: true,
dropReferencesWhenDropTable: true,
requireStandaloneSelectForScopeIdentity: true,
predefinedDataTypes: [
'bigint',