Skip to content

Commit c1e2533

Browse files
committed
Фикс зависания при подгрузке бекапа
1 parent b40bdf5 commit c1e2533

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

totum/common/CalculateAction.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ protected function funcSchemaGzStringUpload($params)
104104
file_get_contents($tmpFileName2)));
105105

106106
$tmpErrors = tempnam(Conf::getTmpLoadedFilesDir(), 'schema_errors_');
107+
108+
Sql::transactionRollBack();
109+
107110
`$pathPsql --dbname="$dbConnect" -q -1 -b -v ON_ERROR_STOP=1 -f $tmpFileName 2>$tmpErrors`;
108111
if ($errors = file_get_contents($tmpErrors)) {
109112
throw new errorException($errors);

0 commit comments

Comments
 (0)