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
aa68dfdd
Commit
aa68dfdd
authored
Oct 20, 2004
by
tomas@poseidon.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed some (Uint32)-1 casts
parent
76231371
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
24 deletions
+27
-24
ndb/src/kernel/blocks/dbtup/DbtupTrigger.cpp
ndb/src/kernel/blocks/dbtup/DbtupTrigger.cpp
+27
-24
No files found.
ndb/src/kernel/blocks/dbtup/DbtupTrigger.cpp
View file @
aa68dfdd
...
...
@@ -746,14 +746,15 @@ bool Dbtup::readTriggerInfo(TupTriggerData* const trigPtr,
//--------------------------------------------------------------------
// Read Primary Key Values
//--------------------------------------------------------------------
noPrimKey
=
readAttributes
(
pagep
.
p
,
int
ret
=
readAttributes
(
pagep
.
p
,
tupheadoffset
,
&
tableDescriptor
[
regTabPtr
->
readKeyArray
].
tabDescr
,
regTabPtr
->
noOfKeyAttr
,
keyBuffer
,
ZATTR_BUFFER_SIZE
,
true
);
ndbrequire
(
noPrimKey
!=
(
Uint32
)
-
1
);
ndbrequire
(
ret
!=
-
1
);
noPrimKey
=
ret
;
Uint32
numAttrsToRead
;
if
((
regOperPtr
->
optype
==
ZUPDATE
)
&&
...
...
@@ -788,14 +789,15 @@ bool Dbtup::readTriggerInfo(TupTriggerData* const trigPtr,
if
((
regOperPtr
->
optype
!=
ZDELETE
)
||
(
trigPtr
->
sendBeforeValues
))
{
ljam
();
noMainWords
=
readAttributes
(
pagep
.
p
,
int
ret
=
readAttributes
(
pagep
.
p
,
tupheadoffset
,
&
readBuffer
[
0
],
numAttrsToRead
,
mainBuffer
,
ZATTR_BUFFER_SIZE
,
true
);
ndbrequire
(
noMainWords
!=
(
Uint32
)
-
1
);
ndbrequire
(
ret
!=
-
1
);
noMainWords
=
ret
;
}
else
{
ljam
();
noMainWords
=
0
;
...
...
@@ -813,7 +815,7 @@ bool Dbtup::readTriggerInfo(TupTriggerData* const trigPtr,
pagep
.
i
=
regOperPtr
->
realPageIdC
;
ptrCheckGuard
(
pagep
,
cnoOfPage
,
page
);
noCopyWords
=
readAttributes
(
pagep
.
p
,
int
ret
=
readAttributes
(
pagep
.
p
,
tupheadoffset
,
&
readBuffer
[
0
],
numAttrsToRead
,
...
...
@@ -821,7 +823,8 @@ bool Dbtup::readTriggerInfo(TupTriggerData* const trigPtr,
ZATTR_BUFFER_SIZE
,
true
);
ndbrequire
(
noCopyWords
!=
(
Uint32
)
-
1
);
ndbrequire
(
ret
!=
-
1
);
noCopyWords
=
ret
;
if
((
noMainWords
==
noCopyWords
)
&&
(
memcmp
(
mainBuffer
,
copyBuffer
,
noMainWords
<<
2
)
==
0
))
{
//--------------------------------------------------------------------
...
...
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