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
769f0603
Commit
769f0603
authored
Oct 27, 2017
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some warnings
parent
a81ea753
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
sql/field_comp.cc
sql/field_comp.cc
+4
-2
sql/sys_vars.ic
sql/sys_vars.ic
+1
-1
storage/innobase/include/sync0policy.h
storage/innobase/include/sync0policy.h
+2
-2
No files found.
sql/field_comp.cc
View file @
769f0603
...
...
@@ -62,6 +62,7 @@ static int uncompress_zlib(String *to, const uchar *from, uint from_length,
z_stream
stream
;
uchar
original_pack_length
;
int
wbits
;
ulonglong
avail_out
;
original_pack_length
=
*
from
&
0x07
;
wbits
=
*
from
&
8
?
-
MAX_WBITS
:
MAX_WBITS
;
...
...
@@ -75,14 +76,15 @@ static int uncompress_zlib(String *to, const uchar *from, uint from_length,
return
1
;
}
stream
.
avail_out
=
read_bigendian
(
from
,
original_pack_length
);
avail_out
=
(
ulonglong
)
read_bigendian
(
from
,
original_pack_length
);
if
(
stream
.
avail_out
>
field_length
)
if
(
avail_out
>
field_length
)
{
my_error
(
ER_ZLIB_Z_DATA_ERROR
,
MYF
(
0
));
return
1
;
}
stream
.
avail_out
=
(
uint
)
avail_out
;
if
(
to
->
alloc
(
stream
.
avail_out
))
return
1
;
...
...
sql/sys_vars.ic
View file @
769f0603
...
...
@@ -1767,7 +1767,7 @@ public:
option.var_type|= GET_BIT;
reverse_semantics= my_count_bits(bitmask_arg) > 1;
bitmask= reverse_semantics ? ~bitmask_arg : bitmask_arg;
option.block_size= reverse_semantics ? -(long) bitmask : bitmask;
option.block_size= reverse_semantics ? -(long) bitmask :
(long)
bitmask;
set(global_var_ptr(), def_val);
SYSVAR_ASSERT(def_val < 2);
SYSVAR_ASSERT(size == sizeof(ulonglong));
...
...
storage/innobase/include/sync0policy.h
View file @
769f0603
...
...
@@ -199,7 +199,7 @@ class MutexDebug {
bool
is_owned
()
const
UNIV_NOTHROW
{
return
(
os_thread_eq
(
my_atomic_loadlint
(
&
m_context
.
m_thread_id
),
(
os_thread_id_t
)
my_atomic_loadlint
(
&
m_context
.
m_thread_id
),
os_thread_get_curr_id
()));
}
...
...
@@ -221,7 +221,7 @@ class MutexDebug {
os_thread_id_t
get_thread_id
()
const
UNIV_NOTHROW
{
return
(
my_atomic_loadlint
(
&
m_context
.
m_thread_id
));
return
(
(
os_thread_id_t
)
my_atomic_loadlint
(
&
m_context
.
m_thread_id
));
}
/** Magic number to check for memory corruption. */
...
...
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