mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 21:42:35 +01:00
ndb - bug#23430
make sure not to release log buffer twice (or several times) in case of abort of multi update
This commit is contained in:
parent
64cba8676a
commit
0192b43927
1 changed files with 2 additions and 1 deletions
|
@ -352,7 +352,8 @@ void Dbtup::tupkeyErrorLab(Signal* signal)
|
|||
tabPtr.i= fragPtr.p->fragTableId;
|
||||
ptrCheckGuard(tabPtr, cnoOfTablerec, tablerec);
|
||||
|
||||
if (regOperPtr->m_undo_buffer_space)
|
||||
if (regOperPtr->m_undo_buffer_space &&
|
||||
(regOperPtr->is_first_operation() && regOperPtr->is_last_operation()))
|
||||
{
|
||||
c_lgman->free_log_space(fragPtr.p->m_logfile_group_id,
|
||||
regOperPtr->m_undo_buffer_space);
|
||||
|
|
Loading…
Reference in a new issue