Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
f52b0e37
Commit
f52b0e37
authored
Apr 11, 2007
by
jonas@perch.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb - bug#27748
fix commit trigger on multi-update
parent
ec1ba9db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
ndb/src/kernel/blocks/dbtup/DbtupCommit.cpp
ndb/src/kernel/blocks/dbtup/DbtupCommit.cpp
+6
-0
No files found.
ndb/src/kernel/blocks/dbtup/DbtupCommit.cpp
View file @
f52b0e37
...
@@ -390,6 +390,7 @@ Dbtup::commitRecord(Signal* signal,
...
@@ -390,6 +390,7 @@ Dbtup::commitRecord(Signal* signal,
fragptr
.
p
=
regFragPtr
;
fragptr
.
p
=
regFragPtr
;
tabptr
.
p
=
regTabPtr
;
tabptr
.
p
=
regTabPtr
;
Uint32
hashValue
=
firstOpPtr
.
p
->
hashValue
;
if
(
opType
==
ZINSERT_DELETE
)
{
if
(
opType
==
ZINSERT_DELETE
)
{
ljam
();
ljam
();
...
@@ -412,6 +413,7 @@ Dbtup::commitRecord(Signal* signal,
...
@@ -412,6 +413,7 @@ Dbtup::commitRecord(Signal* signal,
//--------------------------------------------------------------------
//--------------------------------------------------------------------
Uint32
saveOpType
=
regOperPtr
->
optype
;
Uint32
saveOpType
=
regOperPtr
->
optype
;
regOperPtr
->
optype
=
ZINSERT
;
regOperPtr
->
optype
=
ZINSERT
;
regOperPtr
->
hashValue
=
hashValue
;
operPtr
.
p
=
regOperPtr
;
operPtr
.
p
=
regOperPtr
;
checkDetachedTriggers
(
signal
,
checkDetachedTriggers
(
signal
,
...
@@ -444,6 +446,8 @@ Dbtup::commitRecord(Signal* signal,
...
@@ -444,6 +446,8 @@ Dbtup::commitRecord(Signal* signal,
befOpPtr
.
p
->
changeMask
.
clear
();
befOpPtr
.
p
->
changeMask
.
clear
();
befOpPtr
.
p
->
changeMask
.
bitOR
(
attributeMask
);
befOpPtr
.
p
->
changeMask
.
bitOR
(
attributeMask
);
befOpPtr
.
p
->
gci
=
regOperPtr
->
gci
;
befOpPtr
.
p
->
gci
=
regOperPtr
->
gci
;
befOpPtr
.
p
->
optype
=
ZUPDATE
;
befOpPtr
.
p
->
hashValue
=
hashValue
;
befOpPtr
.
p
->
optype
=
opType
;
befOpPtr
.
p
->
optype
=
opType
;
operPtr
.
p
=
befOpPtr
.
p
;
operPtr
.
p
=
befOpPtr
.
p
;
...
@@ -478,11 +482,13 @@ Dbtup::commitRecord(Signal* signal,
...
@@ -478,11 +482,13 @@ Dbtup::commitRecord(Signal* signal,
Uint32
fragPageId
=
befOpPtr
.
p
->
fragPageId
;
Uint32
fragPageId
=
befOpPtr
.
p
->
fragPageId
;
Uint32
pageIndex
=
befOpPtr
.
p
->
pageIndex
;
Uint32
pageIndex
=
befOpPtr
.
p
->
pageIndex
;
befOpPtr
.
p
->
optype
=
ZDELETE
;
befOpPtr
.
p
->
realPageId
=
befOpPtr
.
p
->
realPageIdC
;
befOpPtr
.
p
->
realPageId
=
befOpPtr
.
p
->
realPageIdC
;
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
;
befOpPtr
.
p
->
gci
=
regOperPtr
->
gci
;
befOpPtr
.
p
->
hashValue
=
hashValue
;
befOpPtr
.
p
->
optype
=
opType
;
befOpPtr
.
p
->
optype
=
opType
;
operPtr
.
p
=
befOpPtr
.
p
;
operPtr
.
p
=
befOpPtr
.
p
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment