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
2d340f9a
Commit
2d340f9a
authored
Apr 23, 2014
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug on free buffer space calculation when LZO is used.
Fixed bug on function call when InnoDB plugin is used.
parent
271ea3c8
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
5 deletions
+12
-5
storage/innobase/fil/fil0fil.cc
storage/innobase/fil/fil0fil.cc
+1
-1
storage/innobase/fil/fil0pagecompress.cc
storage/innobase/fil/fil0pagecompress.cc
+3
-1
storage/innobase/include/os0file.h
storage/innobase/include/os0file.h
+3
-1
storage/innobase/os/os0file.cc
storage/innobase/os/os0file.cc
+1
-1
storage/xtradb/fil/fil0pagecompress.cc
storage/xtradb/fil/fil0pagecompress.cc
+3
-1
storage/xtradb/os/os0file.cc
storage/xtradb/os/os0file.cc
+1
-0
No files found.
storage/innobase/fil/fil0fil.cc
View file @
2d340f9a
...
...
@@ -4997,7 +4997,7 @@ fil_extend_space_to_desired_size(
"space for file
\'
%s
\'
failed. Current size "
INT64PF
", desired size "
INT64PF
"
\n
"
,
node
->
name
,
start_offset
,
len
+
start_offset
);
os_file_handle_error_no_exit
(
node
->
name
,
"posix_fallocate"
,
FALSE
);
os_file_handle_error_no_exit
(
node
->
name
,
"posix_fallocate"
,
FALSE
,
__FILE__
,
__LINE__
);
success
=
FALSE
;
}
else
{
success
=
TRUE
;
...
...
storage/innobase/fil/fil0pagecompress.cc
View file @
2d340f9a
...
...
@@ -70,6 +70,8 @@ static ulint srv_data_read, srv_data_written;
#include "lzo/lzo1x.h"
#endif
/* Used for debugging */
//#define UNIV_PAGECOMPRESS_DEBUG 1
/****************************************************************//**
For page compressed pages compress the page before actual write
...
...
@@ -145,7 +147,7 @@ fil_compress_page(
err
=
lzo1x_1_15_compress
(
buf
,
len
,
out_buf
+
header_len
,
&
write_size
,
lzo_mem
);
if
(
err
!=
LZO_E_OK
||
write_size
>
len
)
{
if
(
err
!=
LZO_E_OK
||
write_size
>
UNIV_PAGE_SIZE
-
header_
len
)
{
fprintf
(
stderr
,
"InnoDB: Warning: Compression failed for space %lu name %s len %lu err %d write_size %lu"
,
space_id
,
fil_space_name
(
space
),
len
,
err
,
write_size
);
...
...
storage/innobase/include/os0file.h
View file @
2d340f9a
...
...
@@ -1318,8 +1318,10 @@ os_file_handle_error_no_exit(
/*=========================*/
const
char
*
name
,
/*!< in: name of a file or NULL */
const
char
*
operation
,
/*!< in: operation */
ibool
on_error_silent
);
/*!< in: if TRUE then don't print
ibool
on_error_silent
,
/*!< in: if TRUE then don't print
any message to the log. */
const
char
*
file
,
/*!< in: file name */
const
ulint
line
);
/*!< in: line */
#ifndef UNIV_NONINL
#include "os0file.ic"
...
...
storage/innobase/os/os0file.cc
View file @
2d340f9a
...
...
@@ -370,7 +370,6 @@ os_slot_alloc_page_buf(
/****************************************************************//**
Does error handling when a file operation fails.
@return TRUE if we should retry the operation */
static
ibool
os_file_handle_error_no_exit
(
/*=========================*/
...
...
@@ -6337,6 +6336,7 @@ os_slot_alloc_page_buf(
byte
*
cbuf2
;
byte
*
cbuf
;
/* We allocate extra to avoid memory overwrite on compression */
cbuf2
=
static_cast
<
byte
*>
(
ut_malloc
(
UNIV_PAGE_SIZE
*
2
));
cbuf
=
static_cast
<
byte
*>
(
ut_align
(
cbuf2
,
UNIV_PAGE_SIZE
));
slot
->
page_compression_page
=
static_cast
<
byte
*>
(
cbuf2
);
...
...
storage/xtradb/fil/fil0pagecompress.cc
View file @
2d340f9a
...
...
@@ -70,6 +70,8 @@ static ulint srv_data_read, srv_data_written;
#include "lzo/lzo1x.h"
#endif
/* Used for debugging */
//#define UNIV_PAGECOMPRESS_DEBUG 1
/****************************************************************//**
For page compressed pages compress the page before actual write
...
...
@@ -145,7 +147,7 @@ fil_compress_page(
err
=
lzo1x_1_15_compress
(
buf
,
len
,
out_buf
+
header_len
,
&
write_size
,
lzo_mem
);
if
(
err
!=
LZO_E_OK
||
write_size
>
len
)
{
if
(
err
!=
LZO_E_OK
||
write_size
>
UNIV_PAGE_SIZE
-
header_
len
)
{
fprintf
(
stderr
,
"InnoDB: Warning: Compression failed for space %lu name %s len %lu err %d write_size %lu"
,
space_id
,
fil_space_name
(
space
),
len
,
err
,
write_size
);
...
...
storage/xtradb/os/os0file.cc
View file @
2d340f9a
...
...
@@ -6406,6 +6406,7 @@ os_slot_alloc_page_buf(
byte
*
cbuf2
;
byte
*
cbuf
;
/* We allocate extra to avoid memory overwrite on compression */
cbuf2
=
static_cast
<
byte
*>
(
ut_malloc
(
UNIV_PAGE_SIZE
*
2
));
cbuf
=
static_cast
<
byte
*>
(
ut_align
(
cbuf2
,
UNIV_PAGE_SIZE
));
slot
->
page_compression_page
=
static_cast
<
byte
*>
(
cbuf2
);
...
...
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