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
495ad634
Commit
495ad634
authored
Jan 13, 2006
by
pekka@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb - mysql-5.1-wl2325-v7 quick fix
parent
4b731ddf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
storage/ndb/src/ndbapi/NdbEventOperationImpl.cpp
storage/ndb/src/ndbapi/NdbEventOperationImpl.cpp
+5
-5
No files found.
storage/ndb/src/ndbapi/NdbEventOperationImpl.cpp
View file @
495ad634
...
@@ -104,7 +104,7 @@ NdbEventOperationImpl::NdbEventOperationImpl(NdbEventOperation &N,
...
@@ -104,7 +104,7 @@ NdbEventOperationImpl::NdbEventOperationImpl(NdbEventOperation &N,
m_state
=
EO_CREATED
;
m_state
=
EO_CREATED
;
m_separateEvents
=
fals
e
;
m_separateEvents
=
tru
e
;
m_has_error
=
0
;
m_has_error
=
0
;
...
@@ -1733,7 +1733,7 @@ EventBufData_hash::getpkhash(NdbEventOperationImpl* op, LinearSectionPtr ptr[3])
...
@@ -1733,7 +1733,7 @@ EventBufData_hash::getpkhash(NdbEventOperationImpl* op, LinearSectionPtr ptr[3])
CHARSET_INFO
*
cs
=
col
->
m_cs
?
col
->
m_cs
:
&
my_charset_bin
;
CHARSET_INFO
*
cs
=
col
->
m_cs
?
col
->
m_cs
:
&
my_charset_bin
;
(
*
cs
->
coll
->
hash_sort
)(
cs
,
dptr
+
lb
,
len
,
&
nr1
,
&
nr2
);
(
*
cs
->
coll
->
hash_sort
)(
cs
,
dptr
+
lb
,
len
,
&
nr1
,
&
nr2
);
dptr
+=
bytesize
;
dptr
+=
((
bytesize
+
3
)
/
4
)
*
4
;
}
}
return
nr1
;
return
nr1
;
}
}
...
@@ -1757,7 +1757,7 @@ EventBufData_hash::getpkequal(NdbEventOperationImpl* op, LinearSectionPtr ptr1[3
...
@@ -1757,7 +1757,7 @@ EventBufData_hash::getpkequal(NdbEventOperationImpl* op, LinearSectionPtr ptr1[3
AttributeHeader
ah2
(
*
hptr2
++
);
AttributeHeader
ah2
(
*
hptr2
++
);
// sizes can differ on update of varchar endspace
// sizes can differ on update of varchar endspace
Uint32
bytesize1
=
ah1
.
getByteSize
();
Uint32
bytesize1
=
ah1
.
getByteSize
();
Uint32
bytesize2
=
ah
1
.
getByteSize
();
Uint32
bytesize2
=
ah
2
.
getByteSize
();
assert
(
dptr1
+
bytesize1
<=
(
uchar
*
)(
ptr1
[
1
].
p
+
ptr1
[
1
].
sz
));
assert
(
dptr1
+
bytesize1
<=
(
uchar
*
)(
ptr1
[
1
].
p
+
ptr1
[
1
].
sz
));
assert
(
dptr2
+
bytesize2
<=
(
uchar
*
)(
ptr2
[
1
].
p
+
ptr2
[
1
].
sz
));
assert
(
dptr2
+
bytesize2
<=
(
uchar
*
)(
ptr2
[
1
].
p
+
ptr2
[
1
].
sz
));
...
@@ -1776,8 +1776,8 @@ EventBufData_hash::getpkequal(NdbEventOperationImpl* op, LinearSectionPtr ptr1[3
...
@@ -1776,8 +1776,8 @@ EventBufData_hash::getpkequal(NdbEventOperationImpl* op, LinearSectionPtr ptr1[3
int
res
=
(
cs
->
coll
->
strnncollsp
)(
cs
,
dptr1
+
lb1
,
len1
,
dptr2
+
lb2
,
len2
,
false
);
int
res
=
(
cs
->
coll
->
strnncollsp
)(
cs
,
dptr1
+
lb1
,
len1
,
dptr2
+
lb2
,
len2
,
false
);
if
(
res
!=
0
)
if
(
res
!=
0
)
return
false
;
return
false
;
dptr1
+=
bytesize1
;
dptr1
+=
((
bytesize1
+
3
)
/
4
)
*
4
;
dptr2
+=
bytesize2
;
dptr2
+=
((
bytesize2
+
3
)
/
4
)
*
4
;
}
}
return
true
;
return
true
;
}
}
...
...
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