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
cfbe8342
Commit
cfbe8342
authored
Oct 17, 2014
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DB-742 use consistent version macros
parent
57883124
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
18 deletions
+16
-18
storage/tokudb/CMakeLists.txt
storage/tokudb/CMakeLists.txt
+3
-3
storage/tokudb/hatoku_hton.cc
storage/tokudb/hatoku_hton.cc
+13
-15
No files found.
storage/tokudb/CMakeLists.txt
View file @
cfbe8342
...
...
@@ -24,12 +24,12 @@ IF(NOT DEFINED TOKUDB_VERSION)
ENDIF
()
ENDIF
()
IF
(
DEFINED TOKUDB_VERSION
)
ADD_DEFINITIONS
(
"-DTOKUDB_VERSION=
\"
${
TOKUDB_VERSION
}
\"
"
)
ADD_DEFINITIONS
(
"-DTOKUDB_VERSION=
${
TOKUDB_VERSION
}
"
)
IF
(
${
TOKUDB_VERSION
}
MATCHES
"^tokudb-([0-9]+)
\\
.([0-9]+)
\\
.([0-9]+.*)"
)
ADD_DEFINITIONS
(
"-DTOKUDB_VERSION_MAJOR=
${
CMAKE_MATCH_1
}
"
)
ADD_DEFINITIONS
(
"-DTOKUDB_VERSION_MINOR=
${
CMAKE_MATCH_2
}
"
)
ADD_DEFINITIONS
(
"-DTOKUDB_VERSION_PATCH=
\"
${
CMAKE_MATCH_3
}
\"
"
)
ENDIF
()
ADD_DEFINITIONS
(
"-DTOKUDB_VERSION_PATCH=
${
CMAKE_MATCH_3
}
"
)
ENDIF
()
ENDIF
()
IF
(
DEFINED TOKUDB_NOPATCH_CONFIG
)
...
...
storage/tokudb/hatoku_hton.cc
View file @
cfbe8342
...
...
@@ -264,11 +264,15 @@ static uint32_t tokudb_checkpointing_period;
static
uint32_t
tokudb_fsync_log_period
;
uint32_t
tokudb_write_status_frequency
;
uint32_t
tokudb_read_status_frequency
;
#ifdef TOKUDB_VERSION
char
*
tokudb_version
=
(
char
*
)
TOKUDB_VERSION
;
#define tokudb_stringify_2(x) #x
#define tokudb_stringify(x) tokudb_stringify_2(x)
#define TOKUDB_VERSION_STR tokudb_stringify(TOKUDB_VERSION)
#else
char
*
tokudb_version
;
#define TOKUDB_VERSION_STR NULL
#endif
char
*
tokudb_version
=
(
char
*
)
TOKUDB_VERSION_STR
;
static
int
tokudb_fs_reserve_percent
;
// file system reserve as a percentage of total disk space
#if defined(_WIN32)
...
...
@@ -2500,12 +2504,6 @@ mysql_declare_plugin_end;
#ifdef MARIA_PLUGIN_INTERFACE_VERSION
#ifdef TOKUDB_VERSION
#define TOKUDB_PLUGIN_VERSION_STR TOKUDB_VERSION
#else
#define TOKUDB_PLUGIN_VERSION_STR NULL
#endif
maria_declare_plugin
(
tokudb
)
{
MYSQL_STORAGE_ENGINE_PLUGIN
,
...
...
@@ -2519,7 +2517,7 @@ maria_declare_plugin(tokudb)
TOKUDB_PLUGIN_VERSION
,
toku_global_status_variables_export
,
/* status variables */
tokudb_system_variables
,
/* system variables */
TOKUDB_PLUGIN_VERSION_STR
,
/* string version */
tokudb_version
,
MariaDB_PLUGIN_MATURITY_STABLE
/* maturity */
},
{
...
...
@@ -2534,7 +2532,7 @@ maria_declare_plugin(tokudb)
TOKUDB_PLUGIN_VERSION
,
NULL
,
/* status variables */
NULL
,
/* system variables */
TOKUDB_PLUGIN_VERSION_STR
,
/* string version */
tokudb_version
,
MariaDB_PLUGIN_MATURITY_STABLE
/* maturity */
},
{
...
...
@@ -2549,7 +2547,7 @@ maria_declare_plugin(tokudb)
TOKUDB_PLUGIN_VERSION
,
NULL
,
/* status variables */
NULL
,
/* system variables */
TOKUDB_PLUGIN_VERSION_STR
,
/* string version */
tokudb_version
,
MariaDB_PLUGIN_MATURITY_STABLE
/* maturity */
},
{
...
...
@@ -2564,7 +2562,7 @@ maria_declare_plugin(tokudb)
TOKUDB_PLUGIN_VERSION
,
NULL
,
/* status variables */
NULL
,
/* system variables */
TOKUDB_PLUGIN_VERSION_STR
,
/* string version */
tokudb_version
,
MariaDB_PLUGIN_MATURITY_STABLE
/* maturity */
},
{
...
...
@@ -2579,7 +2577,7 @@ maria_declare_plugin(tokudb)
TOKUDB_PLUGIN_VERSION
,
NULL
,
/* status variables */
NULL
,
/* system variables */
TOKUDB_PLUGIN_VERSION_STR
,
/* string version */
tokudb_version
,
MariaDB_PLUGIN_MATURITY_STABLE
/* maturity */
},
{
...
...
@@ -2594,7 +2592,7 @@ maria_declare_plugin(tokudb)
TOKUDB_PLUGIN_VERSION
,
NULL
,
/* status variables */
NULL
,
/* system variables */
TOKUDB_PLUGIN_VERSION_STR
,
/* string version */
tokudb_version
,
MariaDB_PLUGIN_MATURITY_STABLE
/* maturity */
},
{
...
...
@@ -2609,7 +2607,7 @@ maria_declare_plugin(tokudb)
TOKUDB_PLUGIN_VERSION
,
NULL
,
/* status variables */
NULL
,
/* system variables */
TOKUDB_PLUGIN_VERSION_STR
,
/* string version */
tokudb_version
,
MariaDB_PLUGIN_MATURITY_STABLE
/* maturity */
}
maria_declare_plugin_end
;
...
...
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