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
d9613b75
Commit
d9613b75
authored
May 29, 2018
by
Sergey Vojtovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable C++11
parent
96572b7a
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
5 deletions
+14
-5
CMakeLists.txt
CMakeLists.txt
+8
-0
include/m_string.h
include/m_string.h
+1
-1
sql/table.cc
sql/table.cc
+4
-3
storage/tokudb/PerconaFT/portability/toku_crash.cc
storage/tokudb/PerconaFT/portability/toku_crash.cc
+1
-1
No files found.
CMakeLists.txt
View file @
d9613b75
...
...
@@ -77,6 +77,14 @@ ELSE()
ENDIF
()
PROJECT
(
${
MYSQL_PROJECT_NAME
}
)
IF
(
CMAKE_VERSION VERSION_LESS
"3.1"
)
IF
(
CMAKE_CXX_COMPILER_ID STREQUAL
"GNU"
)
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-std=gnu++11"
)
ENDIF
()
ELSE
()
SET
(
CMAKE_CXX_STANDARD 11
)
ENDIF
()
SET
(
CPACK_PACKAGE_NAME
"MariaDB"
)
SET
(
CPACK_PACKAGE_DESCRIPTION_SUMMARY
"MariaDB: a very fast and robust SQL database server"
)
SET
(
CPACK_PACKAGE_URL
"http://mariadb.org"
)
...
...
include/m_string.h
View file @
d9613b75
...
...
@@ -99,7 +99,7 @@ extern char *strmake(char *dst,const char *src,size_t length);
#define strmake_buf(D,S) strmake(D, S, sizeof(D) - 1)
#else
#define strmake_buf(D,S) ({ \
typeof (D) __x __attribute__((unused)) = { 2 };
\
__typeof__ (D) __x __attribute__((unused)) = { 2 };
\
strmake(D, S, sizeof(D) - 1); \
})
#endif
...
...
sql/table.cc
View file @
d9613b75
...
...
@@ -44,6 +44,7 @@
#include "sql_cte.h"
#include "ha_sequence.h"
#include "sql_show.h"
#include <atomic>
/* For MySQL 5.7 virtual fields */
#define MYSQL57_GENERATED_FIELD 128
...
...
@@ -79,7 +80,7 @@ LEX_CSTRING MYSQL_PROC_NAME= {STRING_WITH_LEN("proc")};
*/
static
LEX_CSTRING
parse_vcol_keyword
=
{
STRING_WITH_LEN
(
"PARSE_VCOL_EXPR "
)
};
static
int64
last_table_id
;
static
std
::
atomic
<
ulong
>
last_table_id
;
/* Functions defined in this file */
...
...
@@ -343,8 +344,8 @@ TABLE_SHARE *alloc_table_share(const char *db, const char *table_name,
*/
do
{
share
->
table_map_id
=
(
ulong
)
my_atomic_add64_explicit
(
&
last_table_id
,
1
,
MY_MEMORY_ORDER_RELAXED
);
share
->
table_map_id
=
last_table_id
.
fetch_add
(
1
,
std
::
memory_order_relaxed
);
}
while
(
unlikely
(
share
->
table_map_id
==
~
0UL
));
}
DBUG_RETURN
(
share
);
...
...
storage/tokudb/PerconaFT/portability/toku_crash.cc
View file @
d9613b75
...
...
@@ -70,7 +70,7 @@ run_gdb(pid_t parent_pid, const char *gdb_path) {
"-ex"
,
"thread apply all bt"
,
"-ex"
,
"thread apply all bt full"
,
exe_buf
,
pid_buf
,
NULL
);
(
char
*
)
NULL
);
}
static
void
...
...
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