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
0e84d54a
Commit
0e84d54a
authored
Feb 01, 2016
by
Kristian Nielsen
Browse files
Options
Browse Files
Download
Plain Diff
Merge MDEV-9112 into 5.5
parents
d0c5efc4
8cf1f509
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
2 deletions
+6
-2
config.h.cmake
config.h.cmake
+1
-1
configure.cmake
configure.cmake
+3
-0
include/my_context.h
include/my_context.h
+1
-1
sql-common/client.c
sql-common/client.c
+1
-0
No files found.
config.h.cmake
View file @
0e84d54a
...
@@ -95,6 +95,7 @@
...
@@ -95,6 +95,7 @@
#cmakedefine HAVE_SYS_TYPES_H 1
#cmakedefine HAVE_SYS_TYPES_H 1
#cmakedefine HAVE_SYS_UN_H 1
#cmakedefine HAVE_SYS_UN_H 1
#cmakedefine HAVE_SYS_VADVISE_H 1
#cmakedefine HAVE_SYS_VADVISE_H 1
#cmakedefine HAVE_UCONTEXT_H 1
#cmakedefine HAVE_TERM_H 1
#cmakedefine HAVE_TERM_H 1
#cmakedefine HAVE_TERMBITS_H 1
#cmakedefine HAVE_TERMBITS_H 1
#cmakedefine HAVE_TERMIOS_H 1
#cmakedefine HAVE_TERMIOS_H 1
...
@@ -291,7 +292,6 @@
...
@@ -291,7 +292,6 @@
#cmakedefine HAVE_THR_YIELD 1
#cmakedefine HAVE_THR_YIELD 1
#cmakedefine HAVE_TIME 1
#cmakedefine HAVE_TIME 1
#cmakedefine HAVE_TIMES 1
#cmakedefine HAVE_TIMES 1
#cmakedefine HAVE_UCONTEXT 1
#cmakedefine HAVE_VALLOC 1
#cmakedefine HAVE_VALLOC 1
#cmakedefine HAVE_VIDATTR 1
#cmakedefine HAVE_VIDATTR 1
#define HAVE_VIO_READ_BUFF 1
#define HAVE_VIO_READ_BUFF 1
...
...
configure.cmake
View file @
0e84d54a
...
@@ -1098,3 +1098,6 @@ CHECK_STRUCT_HAS_MEMBER("struct dirent" d_ino "dirent.h" STRUCT_DIRENT_HAS_D_IN
...
@@ -1098,3 +1098,6 @@ CHECK_STRUCT_HAS_MEMBER("struct dirent" d_ino "dirent.h" STRUCT_DIRENT_HAS_D_IN
CHECK_STRUCT_HAS_MEMBER
(
"struct dirent"
d_namlen
"dirent.h"
STRUCT_DIRENT_HAS_D_NAMLEN
)
CHECK_STRUCT_HAS_MEMBER
(
"struct dirent"
d_namlen
"dirent.h"
STRUCT_DIRENT_HAS_D_NAMLEN
)
SET
(
SPRINTF_RETURNS_INT 1
)
SET
(
SPRINTF_RETURNS_INT 1
)
CHECK_INCLUDE_FILE
(
ucontext.h HAVE_UCONTEXT_H
)
CHECK_INCLUDE_FILE
(
ucontext.h HAVE_UCONTEXT_H
)
IF
(
NOT HAVE_UCONTEXT_H
)
CHECK_INCLUDE_FILE
(
sys/ucontext.h HAVE_UCONTEXT_H
)
ENDIF
()
include/my_context.h
View file @
0e84d54a
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
#define MY_CONTEXT_USE_X86_64_GCC_ASM
#define MY_CONTEXT_USE_X86_64_GCC_ASM
#elif defined(__GNUC__) && __GNUC__ >= 3 && defined(__i386__)
#elif defined(__GNUC__) && __GNUC__ >= 3 && defined(__i386__)
#define MY_CONTEXT_USE_I386_GCC_ASM
#define MY_CONTEXT_USE_I386_GCC_ASM
#elif defined(HAVE_UCONTEXT)
#elif defined(HAVE_UCONTEXT
_H
)
#define MY_CONTEXT_USE_UCONTEXT
#define MY_CONTEXT_USE_UCONTEXT
#else
#else
#define MY_CONTEXT_DISABLE
#define MY_CONTEXT_DISABLE
...
...
sql-common/client.c
View file @
0e84d54a
...
@@ -4293,6 +4293,7 @@ mysql_options(MYSQL *mysql,enum mysql_option option, const void *arg)
...
@@ -4293,6 +4293,7 @@ mysql_options(MYSQL *mysql,enum mysql_option option, const void *arg)
stacksize
=
ASYNC_CONTEXT_DEFAULT_STACK_SIZE
;
stacksize
=
ASYNC_CONTEXT_DEFAULT_STACK_SIZE
;
if
(
my_context_init
(
&
ctxt
->
async_context
,
stacksize
))
if
(
my_context_init
(
&
ctxt
->
async_context
,
stacksize
))
{
{
set_mysql_error
(
mysql
,
CR_OUT_OF_MEMORY
,
unknown_sqlstate
);
my_free
(
ctxt
);
my_free
(
ctxt
);
DBUG_RETURN
(
1
);
DBUG_RETURN
(
1
);
}
}
...
...
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