ndb - bug#23430

  make sure not to release log buffer twice (or several times) in case of abort of multi update
parent 64cba867
...@@ -352,7 +352,8 @@ void Dbtup::tupkeyErrorLab(Signal* signal) ...@@ -352,7 +352,8 @@ void Dbtup::tupkeyErrorLab(Signal* signal)
tabPtr.i= fragPtr.p->fragTableId; tabPtr.i= fragPtr.p->fragTableId;
ptrCheckGuard(tabPtr, cnoOfTablerec, tablerec); 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, c_lgman->free_log_space(fragPtr.p->m_logfile_group_id,
regOperPtr->m_undo_buffer_space); 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