Commit f2edd806 authored by joreland@mysql.com's avatar joreland@mysql.com

bug#10471 - ndb - potential inconsistent backup

  whith some multi update scenarios

  Make sure to init GCI on correct operation before firering operation
parent c1f04bf0
...@@ -443,6 +443,7 @@ Dbtup::commitRecord(Signal* signal, ...@@ -443,6 +443,7 @@ Dbtup::commitRecord(Signal* signal,
saveAttributeMask.bitOR(befOpPtr.p->changeMask); saveAttributeMask.bitOR(befOpPtr.p->changeMask);
befOpPtr.p->changeMask.clear(); befOpPtr.p->changeMask.clear();
befOpPtr.p->changeMask.bitOR(attributeMask); befOpPtr.p->changeMask.bitOR(attributeMask);
befOpPtr.p->gci = regOperPtr->gci;
operPtr.p = befOpPtr.p; operPtr.p = befOpPtr.p;
checkDetachedTriggers(signal, checkDetachedTriggers(signal,
...@@ -480,6 +481,7 @@ Dbtup::commitRecord(Signal* signal, ...@@ -480,6 +481,7 @@ Dbtup::commitRecord(Signal* signal,
befOpPtr.p->pageOffset = befOpPtr.p->pageOffsetC; befOpPtr.p->pageOffset = befOpPtr.p->pageOffsetC;
befOpPtr.p->fragPageId = befOpPtr.p->fragPageIdC; befOpPtr.p->fragPageId = befOpPtr.p->fragPageIdC;
befOpPtr.p->pageIndex = befOpPtr.p->pageIndexC; befOpPtr.p->pageIndex = befOpPtr.p->pageIndexC;
befOpPtr.p->gci = regOperPtr->gci;
operPtr.p = befOpPtr.p; operPtr.p = befOpPtr.p;
checkDetachedTriggers(signal, checkDetachedTriggers(signal,
......
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