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
de444161
Commit
de444161
authored
Jun 10, 2014
by
Kentoku SHIBA
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for Spider build error by abort_loop on windows
parent
29cf8fb3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
10 deletions
+17
-10
storage/spider/spd_db_mysql.cc
storage/spider/spd_db_mysql.cc
+5
-4
storage/spider/spd_ping_table.cc
storage/spider/spd_ping_table.cc
+8
-6
storage/spider/spd_table.cc
storage/spider/spd_table.cc
+4
-0
No files found.
storage/spider/spd_db_mysql.cc
View file @
de444161
...
...
@@ -46,6 +46,7 @@
#include "spd_table.h"
extern
struct
charset_info_st
*
spd_charset_utf8_bin
;
extern
bool
volatile
*
spd_abort_loop
;
extern
handlerton
*
spider_hton_ptr
;
extern
pthread_mutex_t
spider_open_conn_mutex
;
...
...
@@ -1504,10 +1505,10 @@ int spider_db_mysql::connect(
DBUG_PRINT
(
"info"
,(
"spider thd->killed=%s"
,
thd
?
(
thd
->
killed
?
"TRUE"
:
"FALSE"
)
:
"NULL"
));
DBUG_PRINT
(
"info"
,(
"spider abort_loop=%s"
,
abort_loop
?
"TRUE"
:
"FALSE"
));
*
spd_
abort_loop
?
"TRUE"
:
"FALSE"
));
if
(
(
thd
&&
thd
->
killed
)
||
abort_loop
*
spd_
abort_loop
)
{
DBUG_RETURN
(
ER_SPIDER_COND_SKIP_NUM
);
}
...
...
@@ -1581,10 +1582,10 @@ int spider_db_mysql::connect(
DBUG_PRINT
(
"info"
,(
"spider thd->killed=%s"
,
thd
?
(
thd
->
killed
?
"TRUE"
:
"FALSE"
)
:
"NULL"
));
DBUG_PRINT
(
"info"
,(
"spider abort_loop=%s"
,
abort_loop
?
"TRUE"
:
"FALSE"
));
*
spd_
abort_loop
?
"TRUE"
:
"FALSE"
));
if
(
(
thd
&&
thd
->
killed
)
||
abort_loop
*
spd_
abort_loop
)
{
DBUG_RETURN
(
ER_SPIDER_COND_SKIP_NUM
);
}
...
...
storage/spider/spd_ping_table.cc
View file @
de444161
...
...
@@ -40,6 +40,8 @@
#include "spd_udf.h"
#include "spd_malloc.h"
extern
bool
volatile
*
spd_abort_loop
;
extern
handlerton
*
spider_hton_ptr
;
#ifdef HAVE_PSI_INTERFACE
...
...
@@ -1276,10 +1278,10 @@ int spider_ping_table_mon_from_table(
DBUG_PRINT
(
"info"
,(
"spider thd->killed=%s"
,
thd
?
(
thd
->
killed
?
"TRUE"
:
"FALSE"
)
:
"NULL"
));
DBUG_PRINT
(
"info"
,(
"spider abort_loop=%s"
,
abort_loop
?
"TRUE"
:
"FALSE"
));
*
spd_
abort_loop
?
"TRUE"
:
"FALSE"
));
if
(
(
thd
&&
thd
->
killed
)
||
abort_loop
*
spd_
abort_loop
)
{
DBUG_RETURN
(
ER_SPIDER_COND_SKIP_NUM
);
}
...
...
@@ -1338,10 +1340,10 @@ int spider_ping_table_mon_from_table(
DBUG_PRINT
(
"info"
,(
"spider thd->killed=%s"
,
thd
?
(
thd
->
killed
?
"TRUE"
:
"FALSE"
)
:
"NULL"
));
DBUG_PRINT
(
"info"
,(
"spider abort_loop=%s"
,
abort_loop
?
"TRUE"
:
"FALSE"
));
*
spd_
abort_loop
?
"TRUE"
:
"FALSE"
));
if
(
(
thd
&&
thd
->
killed
)
||
abort_loop
*
spd_
abort_loop
)
{
error_num
=
ER_SPIDER_COND_SKIP_NUM
;
break
;
...
...
@@ -1449,10 +1451,10 @@ int spider_ping_table_mon_from_table(
DBUG_PRINT
(
"info"
,(
"spider thd->killed=%s"
,
thd
?
(
thd
->
killed
?
"TRUE"
:
"FALSE"
)
:
"NULL"
));
DBUG_PRINT
(
"info"
,(
"spider abort_loop=%s"
,
abort_loop
?
"TRUE"
:
"FALSE"
));
*
spd_
abort_loop
?
"TRUE"
:
"FALSE"
));
if
(
(
thd
&&
thd
->
killed
)
||
abort_loop
*
spd_
abort_loop
)
{
error_num
=
ER_SPIDER_COND_SKIP_NUM
;
}
else
{
...
...
storage/spider/spd_table.cc
View file @
de444161
...
...
@@ -51,6 +51,7 @@ HASH *spd_db_att_xid_cache;
struct
charset_info_st
*
spd_charset_utf8_bin
;
const
char
**
spd_defaults_extra_file
;
const
char
**
spd_defaults_file
;
bool
volatile
*
spd_abort_loop
;
handlerton
*
spider_hton_ptr
;
SPIDER_DBTON
spider_dbton
[
SPIDER_DBTON_SIZE
];
...
...
@@ -6215,6 +6216,8 @@ int spider_db_init(
GetProcAddress
(
current_module
,
"my_defaults_extra_file"
);
spd_defaults_file
=
(
const
char
**
)
GetProcAddress
(
current_module
,
"my_defaults_file"
);
spd_abort_loop
=
(
bool
volatile
*
)
GetProcAddress
(
current_module
,
"?abort_loop@@3_NC"
);
#else
spd_db_att_thread_id
=
&
thread_id
;
#ifdef XID_CACHE_IS_SPLITTED
...
...
@@ -6228,6 +6231,7 @@ int spider_db_init(
spd_charset_utf8_bin
=
&
my_charset_utf8_bin
;
spd_defaults_extra_file
=
&
my_defaults_extra_file
;
spd_defaults_file
=
&
my_defaults_file
;
spd_abort_loop
=
&
abort_loop
;
#endif
#ifdef HAVE_PSI_INTERFACE
...
...
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