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:
jonas@perch.ndb.mysql.com 2006-10-18 20:54:25 +02:00
parent 64cba8676a
commit 0192b43927

View file

@ -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);