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
79405cca
Commit
79405cca
authored
Apr 30, 2010
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge 5.1.44a security release + fix a couple compiler warnings.
parents
1a13a2df
07bfc5a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
8 deletions
+15
-8
storage/xtradb/fil/fil0fil.c
storage/xtradb/fil/fil0fil.c
+11
-8
strings/ctype-utf8.c
strings/ctype-utf8.c
+4
-0
No files found.
storage/xtradb/fil/fil0fil.c
View file @
79405cca
...
...
@@ -631,7 +631,7 @@ fil_node_open_file(
fil_system_t
*
system
,
/*!< in: tablespace memory cache */
fil_space_t
*
space
)
/*!< in: space */
{
ib_int64_t
size_bytes
;
ib_
u
int64_t
size_bytes
;
ulint
size_low
;
ulint
size_high
;
ibool
ret
;
...
...
@@ -672,8 +672,8 @@ fil_node_open_file(
os_file_get_size
(
node
->
handle
,
&
size_low
,
&
size_high
);
size_bytes
=
(((
ib_int64_t
)
size_high
)
<<
32
)
+
(
ib_int64_t
)
size_low
;
size_bytes
=
(((
ib_
u
int64_t
)
size_high
)
<<
32
)
+
(
ib_
u
int64_t
)
size_low
;
#ifdef UNIV_HOTBACKUP
if
(
space
->
id
==
0
)
{
node
->
size
=
(
ulint
)
(
size_bytes
/
UNIV_PAGE_SIZE
);
...
...
@@ -3443,7 +3443,7 @@ fil_load_single_table_tablespace(
ulint
flags
;
ulint
size_low
;
ulint
size_high
;
ib_int64_t
size
;
ib_
u
int64_t
size
;
#ifdef UNIV_HOTBACKUP
fil_space_t
*
space
;
#endif
...
...
@@ -3563,7 +3563,7 @@ fil_load_single_table_tablespace(
/* Every .ibd file is created >= 4 pages in size. Smaller files
cannot be ok. */
size
=
(((
ib_
int64_t
)
size_high
)
<<
32
)
+
(
ib_
int64_t
)
size_low
;
size
=
(((
ib_
uint64_t
)
size_high
)
<<
32
)
+
(
ib_u
int64_t
)
size_low
;
#ifndef UNIV_HOTBACKUP
if
(
size
<
FIL_IBD_FILE_INITIAL_SIZE
*
UNIV_PAGE_SIZE
)
{
fprintf
(
stderr
,
...
...
@@ -4789,13 +4789,16 @@ ibool
fil_area_is_exist
(
/*==============*/
ulint
space_id
,
/*!< in: space id */
ulint
zip_size
,
/*!< in: compressed page size in bytes;
ulint
zip_size
__attribute__
((
unused
)),
/*!< in: compressed page size in bytes;
0 for uncompressed pages */
ulint
block_offset
,
/*!< in: offset in number of blocks */
ulint
byte_offset
,
/*!< in: remainder of offset in bytes; in
ulint
byte_offset
__attribute__
((
unused
)),
/*!< in: remainder of offset in bytes; in
aio this must be divisible by the OS block
size */
ulint
len
)
/*!< in: how many bytes to read or write; this
ulint
len
__attribute__
((
unused
)))
/*!< in: how many bytes to read or write; this
must not cross a file boundary; in aio this
must be a block size multiple */
{
...
...
strings/ctype-utf8.c
View file @
79405cca
...
...
@@ -4116,6 +4116,10 @@ my_wc_mb_filename(CHARSET_INFO *cs __attribute__((unused)),
{
int
code
;
char
hex
[]
=
"0123456789abcdef"
;
if
(
s
>=
e
)
return
MY_CS_TOOSMALL
;
if
(
wc
<
128
&&
filename_safe_char
[
wc
])
{
*
s
=
(
uchar
)
wc
;
...
...
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