Commit 591f3194 authored by unknown's avatar unknown

ndb - bug#23430

  make sure not to release log buffer twice (or several times) in case of abort of multi update


storage/ndb/src/kernel/blocks/dbtup/DbtupAbort.cpp:
  make sure not to release log buffer twice (or several times) in case of abort of multi update
parent 3511385c
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment