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
50354951
Commit
50354951
authored
May 26, 2014
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compilation failure on Windows
VS doesn't like #ifdefs inside a macro expansion. move them outside
parent
7e7e1bf8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
14 deletions
+16
-14
storage/innobase/handler/ha_innodb.cc
storage/innobase/handler/ha_innodb.cc
+8
-7
storage/xtradb/handler/ha_innodb.cc
storage/xtradb/handler/ha_innodb.cc
+8
-7
No files found.
storage/innobase/handler/ha_innodb.cc
View file @
50354951
...
...
@@ -16797,19 +16797,20 @@ static MYSQL_SYSVAR_BOOL(use_trim, srv_use_trim,
"Use trim. Default FALSE."
,
NULL
,
NULL
,
FALSE
);
#if defined(HAVE_LZO)
#define default_compression_algorithm PAGE_LZO_ALGORITHM
#elif defined(HAVE_LZ4)
#define default_compression_algorithm PAGE_LZ4_ALGORITHM
#else
#define default_compression_algorithm PAGE_ZLIB_ALGORITHM
#endif
static
MYSQL_SYSVAR_LONG
(
compression_algorithm
,
innodb_compression_algorithm
,
PLUGIN_VAR_OPCMDARG
,
"Compression algorithm used on page compression. 1 for zlib, 2 for lz3, 3 for lzo"
,
NULL
,
NULL
,
PAGE_ZLIB_ALGORITHM
,
0
,
#if defined(HAVE_LZO) && defined(HAVE_LZ4)
PAGE_ALGORITHM_LAST
,
#elif defined(HAVE_LZ4) && !defined(HAVE_LZO)
PAGE_LZ4_ALGORITHM
,
#else
PAGE_ZLIB_ALGORITHM
,
#endif
default_compression_algorithm
,
0
);
static
MYSQL_SYSVAR_LONG
(
mtflush_threads
,
srv_mtflush_threads
,
...
...
storage/xtradb/handler/ha_innodb.cc
View file @
50354951
...
...
@@ -17954,19 +17954,20 @@ static MYSQL_SYSVAR_BOOL(use_trim, srv_use_trim,
"Use trim. Default FALSE."
,
NULL
,
NULL
,
FALSE
);
#if defined(HAVE_LZO)
#define default_compression_algorithm PAGE_LZO_ALGORITHM
#elif defined(HAVE_LZ4)
#define default_compression_algorithm PAGE_LZ4_ALGORITHM
#else
#define default_compression_algorithm PAGE_ZLIB_ALGORITHM
#endif
static
MYSQL_SYSVAR_LONG
(
compression_algorithm
,
innodb_compression_algorithm
,
PLUGIN_VAR_OPCMDARG
,
"Compression algorithm used on page compression. 1 for zlib, 2 for lz3, 3 for lzo"
,
NULL
,
NULL
,
PAGE_ZLIB_ALGORITHM
,
0
,
#if defined(HAVE_LZO) && defined(HAVE_LZ4)
PAGE_ALGORITHM_LAST
,
#elif defined(HAVE_LZ4) && !defined(HAVE_LZO)
PAGE_LZ4_ALGORITHM
,
#else
PAGE_ZLIB_ALGORITHM
,
#endif
default_compression_algorithm
,
0
);
static
MYSQL_SYSVAR_LONG
(
mtflush_threads
,
srv_mtflush_threads
,
...
...
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