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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
c9b29c6c
Commit
c9b29c6c
authored
Oct 25, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge ssmith@bk-internal.mysql.com:/home/bk/mysql-5.1-new-ndb
into willster.(none):/home/stewart/Documents/MySQL/5.1/ndb
parents
e11871d8
726a63b0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
storage/ndb/include/util/UtilBuffer.hpp
storage/ndb/include/util/UtilBuffer.hpp
+6
-2
storage/ndb/src/common/util/SimpleProperties.cpp
storage/ndb/src/common/util/SimpleProperties.cpp
+2
-2
No files found.
storage/ndb/include/util/UtilBuffer.hpp
View file @
c9b29c6c
...
...
@@ -73,11 +73,15 @@ public:
}
int
assign
(
const
void
*
d
,
size_t
l
)
{
if
(
data
)
free
(
data
);
/* Free the old data only after copying, in case d==data. */
void
*
old_data
=
data
;
data
=
NULL
;
len
=
0
;
alloc_size
=
0
;
return
append
(
d
,
l
);
int
ret
=
append
(
d
,
l
);
if
(
old_data
)
free
(
old_data
);
return
ret
;
}
void
clear
()
{
...
...
storage/ndb/src/common/util/SimpleProperties.cpp
View file @
c9b29c6c
...
...
@@ -267,7 +267,7 @@ SimpleProperties::pack(Writer & it, const void * __src,
const
char
*
src_len
=
_src
+
_map
[
i
].
Length_Offset
;
Uint32
len
=
*
((
Uint32
*
)
src_len
);
if
(
!
ignoreMinMax
){
if
(
len
==
_map
[
i
].
maxValue
)
if
(
len
>
_map
[
i
].
maxValue
)
return
ValueTooHigh
;
}
ok
=
it
.
add
(
_map
[
i
].
Key
,
src
,
len
);
...
...
@@ -276,7 +276,7 @@ SimpleProperties::pack(Writer & it, const void * __src,
case
SimpleProperties
:
:
StringValue
:
if
(
!
ignoreMinMax
){
size_t
len
=
strlen
(
src
);
if
(
len
==
_map
[
i
].
maxValue
)
if
(
len
>
_map
[
i
].
maxValue
)
return
ValueTooHigh
;
}
ok
=
it
.
add
(
_map
[
i
].
Key
,
src
);
...
...
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