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
d5372672
Commit
d5372672
authored
May 15, 2013
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql-5.1 to mysql-5.5.
parents
7270e8a3
1d3a200b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
6 deletions
+39
-6
storage/innobase/page/page0zip.c
storage/innobase/page/page0zip.c
+39
-6
No files found.
storage/innobase/page/page0zip.c
View file @
d5372672
...
@@ -2148,8 +2148,19 @@ page_zip_decompress_node_ptrs(
...
@@ -2148,8 +2148,19 @@ page_zip_decompress_node_ptrs(
-
PAGE_ZIP_START
-
PAGE_DIR
);
-
PAGE_ZIP_START
-
PAGE_DIR
);
switch
(
inflate
(
d_stream
,
Z_SYNC_FLUSH
))
{
switch
(
inflate
(
d_stream
,
Z_SYNC_FLUSH
))
{
case
Z_STREAM_END
:
case
Z_STREAM_END
:
/* Apparently, n_dense has grown
if
(
d_stream
->
next_out
since the time the page was last compressed. */
!=
rec
-
REC_N_NEW_EXTRA_BYTES
)
{
/* n_dense has grown since the page
was last compressed. */
}
else
{
/* Skip the REC_N_NEW_EXTRA_BYTES. */
d_stream
->
next_out
=
rec
;
/* Set heap_no and the status bits. */
mach_write_to_2
(
rec
-
REC_NEW_HEAP_NO
,
heap_status
);
heap_status
+=
1
<<
REC_HEAP_NO_SHIFT
;
}
goto
zlib_done
;
goto
zlib_done
;
case
Z_OK
:
case
Z_OK
:
case
Z_BUF_ERROR
:
case
Z_BUF_ERROR
:
...
@@ -2337,8 +2348,19 @@ page_zip_decompress_sec(
...
@@ -2337,8 +2348,19 @@ page_zip_decompress_sec(
if
(
UNIV_LIKELY
(
d_stream
->
avail_out
))
{
if
(
UNIV_LIKELY
(
d_stream
->
avail_out
))
{
switch
(
inflate
(
d_stream
,
Z_SYNC_FLUSH
))
{
switch
(
inflate
(
d_stream
,
Z_SYNC_FLUSH
))
{
case
Z_STREAM_END
:
case
Z_STREAM_END
:
/* Apparently, n_dense has grown
if
(
d_stream
->
next_out
since the time the page was last compressed. */
!=
rec
-
REC_N_NEW_EXTRA_BYTES
)
{
/* n_dense has grown since the page
was last compressed. */
}
else
{
/* Skip the REC_N_NEW_EXTRA_BYTES. */
d_stream
->
next_out
=
rec
;
/* Set heap_no and the status bits. */
mach_write_to_2
(
rec
-
REC_NEW_HEAP_NO
,
heap_status
);
heap_status
+=
1
<<
REC_HEAP_NO_SHIFT
;
}
goto
zlib_done
;
goto
zlib_done
;
case
Z_OK
:
case
Z_OK
:
case
Z_BUF_ERROR
:
case
Z_BUF_ERROR
:
...
@@ -2596,8 +2618,19 @@ page_zip_decompress_clust(
...
@@ -2596,8 +2618,19 @@ page_zip_decompress_clust(
err
=
inflate
(
d_stream
,
Z_SYNC_FLUSH
);
err
=
inflate
(
d_stream
,
Z_SYNC_FLUSH
);
switch
(
err
)
{
switch
(
err
)
{
case
Z_STREAM_END
:
case
Z_STREAM_END
:
/* Apparently, n_dense has grown
if
(
d_stream
->
next_out
since the time the page was last compressed. */
!=
rec
-
REC_N_NEW_EXTRA_BYTES
)
{
/* n_dense has grown since the page
was last compressed. */
}
else
{
/* Skip the REC_N_NEW_EXTRA_BYTES. */
d_stream
->
next_out
=
rec
;
/* Set heap_no and the status bits. */
mach_write_to_2
(
rec
-
REC_NEW_HEAP_NO
,
heap_status
);
heap_status
+=
1
<<
REC_HEAP_NO_SHIFT
;
}
goto
zlib_done
;
goto
zlib_done
;
case
Z_OK
:
case
Z_OK
:
case
Z_BUF_ERROR
:
case
Z_BUF_ERROR
:
...
...
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