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
8eaa1d90
Commit
8eaa1d90
authored
May 26, 2014
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use ENUM not ULONG for innodb-compression-algorithm command-line option
parent
50354951
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
18 deletions
+24
-18
storage/innobase/handler/ha_innodb.cc
storage/innobase/handler/ha_innodb.cc
+10
-7
storage/innobase/include/srv0srv.h
storage/innobase/include/srv0srv.h
+1
-1
storage/innobase/srv/srv0srv.cc
storage/innobase/srv/srv0srv.cc
+1
-1
storage/xtradb/handler/ha_innodb.cc
storage/xtradb/handler/ha_innodb.cc
+10
-7
storage/xtradb/include/srv0srv.h
storage/xtradb/include/srv0srv.h
+1
-1
storage/xtradb/srv/srv0srv.cc
storage/xtradb/srv/srv0srv.cc
+1
-1
No files found.
storage/innobase/handler/ha_innodb.cc
View file @
8eaa1d90
...
@@ -16804,14 +16804,17 @@ static MYSQL_SYSVAR_BOOL(use_trim, srv_use_trim,
...
@@ -16804,14 +16804,17 @@ static MYSQL_SYSVAR_BOOL(use_trim, srv_use_trim,
#else
#else
#define default_compression_algorithm PAGE_ZLIB_ALGORITHM
#define default_compression_algorithm PAGE_ZLIB_ALGORITHM
#endif
#endif
static
MYSQL_SYSVAR_LONG
(
compression_algorithm
,
innodb_compression_algorithm
,
static
const
char
*
page_compression_algorithms
[]
=
{
"none"
,
"zlib"
,
"lz4"
,
"lzo"
,
0
};
static
TYPELIB
page_compression_algorithms_typelib
=
{
array_elements
(
page_compression_algorithms
)
-
1
,
0
,
page_compression_algorithms
,
0
};
static
MYSQL_SYSVAR_ENUM
(
compression_algorithm
,
innodb_compression_algorithm
,
PLUGIN_VAR_OPCMDARG
,
PLUGIN_VAR_OPCMDARG
,
"Compression algorithm used on page compression. 1 for zlib, 2 for lz3, 3 for lzo"
,
"Compression algorithm used on page compression. One of: none, zlib, lz4, or lzo"
,
NULL
,
NULL
,
NULL
,
NULL
,
default_compression_algorithm
,
PAGE_ZLIB_ALGORITHM
,
&
page_compression_algorithms_typelib
);
0
,
default_compression_algorithm
,
0
);
static
MYSQL_SYSVAR_LONG
(
mtflush_threads
,
srv_mtflush_threads
,
static
MYSQL_SYSVAR_LONG
(
mtflush_threads
,
srv_mtflush_threads
,
PLUGIN_VAR_RQCMDARG
|
PLUGIN_VAR_READONLY
,
PLUGIN_VAR_RQCMDARG
|
PLUGIN_VAR_READONLY
,
...
...
storage/innobase/include/srv0srv.h
View file @
8eaa1d90
...
@@ -252,7 +252,7 @@ extern my_bool srv_use_posix_fallocate;
...
@@ -252,7 +252,7 @@ extern my_bool srv_use_posix_fallocate;
extern
my_bool
srv_use_atomic_writes
;
extern
my_bool
srv_use_atomic_writes
;
/* Compression algorithm*/
/* Compression algorithm*/
extern
long
innodb_compression_algorithm
;
extern
u
long
innodb_compression_algorithm
;
/* Number of flush threads */
/* Number of flush threads */
#define MTFLUSH_MAX_WORKER 64
#define MTFLUSH_MAX_WORKER 64
...
...
storage/innobase/srv/srv0srv.cc
View file @
8eaa1d90
...
@@ -155,7 +155,7 @@ UNIV_INTERN my_bool srv_use_posix_fallocate = FALSE;
...
@@ -155,7 +155,7 @@ UNIV_INTERN my_bool srv_use_posix_fallocate = FALSE;
/* If this flag is TRUE, then we disable doublewrite buffer */
/* If this flag is TRUE, then we disable doublewrite buffer */
UNIV_INTERN
my_bool
srv_use_atomic_writes
=
FALSE
;
UNIV_INTERN
my_bool
srv_use_atomic_writes
=
FALSE
;
/* If this flag IS TRUE, then we use lz4 to compress/decompress pages */
/* If this flag IS TRUE, then we use lz4 to compress/decompress pages */
UNIV_INTERN
long
innodb_compression_algorithm
=
PAGE_ZLIB_ALGORITHM
;
UNIV_INTERN
u
long
innodb_compression_algorithm
=
PAGE_ZLIB_ALGORITHM
;
/* Number of threads used for multi-threaded flush */
/* Number of threads used for multi-threaded flush */
UNIV_INTERN
long
srv_mtflush_threads
=
MTFLUSH_DEFAULT_WORKER
;
UNIV_INTERN
long
srv_mtflush_threads
=
MTFLUSH_DEFAULT_WORKER
;
/* If this flag is TRUE, then we will use multi threaded flush. */
/* If this flag is TRUE, then we will use multi threaded flush. */
...
...
storage/xtradb/handler/ha_innodb.cc
View file @
8eaa1d90
...
@@ -17961,14 +17961,17 @@ static MYSQL_SYSVAR_BOOL(use_trim, srv_use_trim,
...
@@ -17961,14 +17961,17 @@ static MYSQL_SYSVAR_BOOL(use_trim, srv_use_trim,
#else
#else
#define default_compression_algorithm PAGE_ZLIB_ALGORITHM
#define default_compression_algorithm PAGE_ZLIB_ALGORITHM
#endif
#endif
static
MYSQL_SYSVAR_LONG
(
compression_algorithm
,
innodb_compression_algorithm
,
static
const
char
*
page_compression_algorithms
[]
=
{
"none"
,
"zlib"
,
"lz4"
,
"lzo"
,
0
};
static
TYPELIB
page_compression_algorithms_typelib
=
{
array_elements
(
page_compression_algorithms
)
-
1
,
0
,
page_compression_algorithms
,
0
};
static
MYSQL_SYSVAR_ENUM
(
compression_algorithm
,
innodb_compression_algorithm
,
PLUGIN_VAR_OPCMDARG
,
PLUGIN_VAR_OPCMDARG
,
"Compression algorithm used on page compression. 1 for zlib, 2 for lz3, 3 for lzo"
,
"Compression algorithm used on page compression. One of: none, zlib, lz4, or lzo"
,
NULL
,
NULL
,
NULL
,
NULL
,
default_compression_algorithm
,
PAGE_ZLIB_ALGORITHM
,
&
page_compression_algorithms_typelib
);
0
,
default_compression_algorithm
,
0
);
static
MYSQL_SYSVAR_LONG
(
mtflush_threads
,
srv_mtflush_threads
,
static
MYSQL_SYSVAR_LONG
(
mtflush_threads
,
srv_mtflush_threads
,
PLUGIN_VAR_RQCMDARG
|
PLUGIN_VAR_READONLY
,
PLUGIN_VAR_RQCMDARG
|
PLUGIN_VAR_READONLY
,
...
...
storage/xtradb/include/srv0srv.h
View file @
8eaa1d90
...
@@ -270,7 +270,7 @@ extern my_bool srv_use_posix_fallocate;
...
@@ -270,7 +270,7 @@ extern my_bool srv_use_posix_fallocate;
extern
my_bool
srv_use_atomic_writes
;
extern
my_bool
srv_use_atomic_writes
;
/* Compression algorithm*/
/* Compression algorithm*/
extern
long
innodb_compression_algorithm
;
extern
u
long
innodb_compression_algorithm
;
/* Number of flush threads */
/* Number of flush threads */
#define MTFLUSH_MAX_WORKER 64
#define MTFLUSH_MAX_WORKER 64
...
...
storage/xtradb/srv/srv0srv.cc
View file @
8eaa1d90
...
@@ -173,7 +173,7 @@ UNIV_INTERN my_bool srv_use_posix_fallocate = FALSE;
...
@@ -173,7 +173,7 @@ UNIV_INTERN my_bool srv_use_posix_fallocate = FALSE;
/* If this flag is TRUE, then we disable doublewrite buffer */
/* If this flag is TRUE, then we disable doublewrite buffer */
UNIV_INTERN
my_bool
srv_use_atomic_writes
=
FALSE
;
UNIV_INTERN
my_bool
srv_use_atomic_writes
=
FALSE
;
/* If this flag IS TRUE, then we use lz4 to compress/decompress pages */
/* If this flag IS TRUE, then we use lz4 to compress/decompress pages */
UNIV_INTERN
long
innodb_compression_algorithm
=
PAGE_ZLIB_ALGORITHM
;
UNIV_INTERN
u
long
innodb_compression_algorithm
=
PAGE_ZLIB_ALGORITHM
;
/* Number of threads used for multi-threaded flush */
/* Number of threads used for multi-threaded flush */
UNIV_INTERN
long
srv_mtflush_threads
=
MTFLUSH_DEFAULT_WORKER
;
UNIV_INTERN
long
srv_mtflush_threads
=
MTFLUSH_DEFAULT_WORKER
;
/* If this flag is TRUE, then we will use multi threaded flush. */
/* If this flag is TRUE, then we will use multi threaded flush. */
...
...
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