From 2d1121020fad49d2e48d01b6ed8f3b7335a14850 Mon Sep 17 00:00:00 2001
From: "joreland@mysql.com" <>
Date: Wed, 13 Oct 2004 15:27:39 +0200
Subject: [PATCH] Handle DELETE/INSERT as update in operations started before
 LCP

---
 ndb/src/kernel/blocks/dbtup/DbtupLCP.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ndb/src/kernel/blocks/dbtup/DbtupLCP.cpp b/ndb/src/kernel/blocks/dbtup/DbtupLCP.cpp
index f8f2b9bdbd2..370ef4c4ba5 100644
--- a/ndb/src/kernel/blocks/dbtup/DbtupLCP.cpp
+++ b/ndb/src/kernel/blocks/dbtup/DbtupLCP.cpp
@@ -265,7 +265,8 @@ void Dbtup::lcpSaveCopyListLab(Signal* signal, CheckpointInfoPtr ciPtr)
 // We ensure that we have actually allocated the tuple header and
 // also found it. Otherwise we will fill the undo log with garbage.
 /* ---------------------------------------------------------------- */
-      if (regOpPtr.p->optype == ZUPDATE) {
+      if (regOpPtr.p->optype == ZUPDATE || 
+	  (regOpPtr.p->optype == ZINSERT && regOpPtr.p->deleteInsertFlag)) {
         ljam();
         if (regOpPtr.p->realPageIdC != RNIL) {
 /* ---------------------------------------------------------------- */
-- 
2.30.9