1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Rollback UPDATE/DELETE statements on kill

nsure that rows in a multi-row INSERT DELAYED are inserted atomicly
This commit is contained in:
monty@mysql.com
2004-03-04 18:16:10 +02:00
parent 9c4b9e6df1
commit b9c4ee353d
5 changed files with 31 additions and 7 deletions

View File

@ -238,6 +238,8 @@ int mysql_update(THD *thd,
}
}
}
if (thd->killed && !error)
error= 1; // Aborted
limit= tmp_limit;
end_read_record(&info);
/* Change select to use tempfile */
@ -309,6 +311,8 @@ int mysql_update(THD *thd,
else
table->file->unlock_row();
}
if (thd->killed && !error)
error= 1; // Aborted
end_read_record(&info);
free_io_cache(table); // If ORDER BY
thd->proc_info="end";