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
deaf4708
Commit
deaf4708
authored
Sep 29, 2006
by
svoj@mysql.com/april.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed that max_zfile_size was incorrectly calculated on big-endian boxes.
Was introduced with patch for bug#21675.
parent
b6684e6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
sql/ha_archive.cc
sql/ha_archive.cc
+11
-1
No files found.
sql/ha_archive.cc
View file @
deaf4708
...
...
@@ -206,7 +206,17 @@ bool archive_db_init()
else
{
zoffset_size
=
2
<<
((
zlibCompileFlags
()
>>
6
)
&
3
);
max_zfile_size
=
(
z_off_t
)
(
~
(
1
<<
(
zoffset_size
*
8
-
1
)));
switch
(
sizeof
(
z_off_t
))
{
case
2
:
max_zfile_size
=
INT_MAX16
;
break
;
case
8
:
max_zfile_size
=
LONGLONG_MAX
;
break
;
case
4
:
default:
max_zfile_size
=
INT_MAX32
;
}
archive_inited
=
TRUE
;
DBUG_RETURN
(
FALSE
);
}
...
...
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