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
993dd378
Commit
993dd378
authored
Mar 25, 2014
by
Kentoku SHIBA
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for MariaDB 10.0.7 building errors
parent
4e9e5615
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
4 deletions
+35
-4
storage/spider/ha_spider.cc
storage/spider/ha_spider.cc
+18
-2
storage/spider/spd_db_conn.cc
storage/spider/spd_db_conn.cc
+4
-2
storage/spider/spd_db_include.h
storage/spider/spd_db_include.h
+4
-0
storage/spider/spd_table.cc
storage/spider/spd_table.cc
+9
-0
No files found.
storage/spider/ha_spider.cc
View file @
993dd378
...
...
@@ -8718,7 +8718,9 @@ ulonglong ha_spider::table_flags() const
HA_HAS_RECORDS
|
HA_PARTIAL_COLUMN_READ
|
#ifdef HA_CAN_BULK_ACCESS
#if defined(HS_HAS_SQLCOM) && defined(HAVE_HANDLERSOCKET)
(
support_bulk_access_hs
()
?
HA_CAN_BULK_ACCESS
:
0
)
|
#endif
#endif
SPIDER_CAN_BG_SEARCH
|
SPIDER_CAN_BG_INSERT
|
...
...
@@ -10614,10 +10616,14 @@ int ha_spider::info_push(
DBUG_PRINT
(
"info"
,(
"spider this=%p"
,
this
));
#ifdef HA_CAN_BULK_ACCESS
if
(
#ifdef HANDLER_HAS_DIRECT_UPDATE_ROWS
#if defined(HS_HAS_SQLCOM) && defined(HAVE_HANDLERSOCKET)
info_type
!=
INFO_KIND_HS_RET_FIELDS
&&
#endif
#endif
info_type
!=
INFO_KIND_BULK_ACCESS_BEGIN
&&
info_type
!=
INFO_KIND_BULK_ACCESS_CURRENT
&&
info_type
!=
INFO_KIND_BULK_ACCESS_END
&&
info_type
!=
INFO_KIND_HS_RET_FIELDS
info_type
!=
INFO_KIND_BULK_ACCESS_END
)
{
if
(
!
is_bulk_access_clone
)
{
...
...
@@ -10796,12 +10802,16 @@ int ha_spider::info_push(
)
{
DBUG_RETURN
(
error_num
);
}
#ifdef HA_CAN_BULK_ACCESS
#if defined(HS_HAS_SQLCOM) && defined(HAVE_HANDLERSOCKET)
memset
(
bulk_access_link_current
->
spider
->
result_list
.
hs_r_bulk_open_index
,
0
,
share
->
link_bitmap_size
);
memset
(
bulk_access_link_current
->
spider
->
result_list
.
hs_w_bulk_open_index
,
0
,
share
->
link_bitmap_size
);
#endif
#endif
/*
#if defined(HS_HAS_SQLCOM) && defined(HAVE_HANDLERSOCKET)
if ((error_num = bulk_access_link_current->spider->reset_hs_strs_pos(
...
...
@@ -12078,10 +12088,12 @@ int ha_spider::sync_from_clone_source(
low_priority
=
spider
->
low_priority
;
memcpy
(
conns
,
spider
->
conns
,
sizeof
(
SPIDER_CONN
*
)
*
share
->
link_count
);
#if defined(HS_HAS_SQLCOM) && defined(HAVE_HANDLERSOCKET)
memcpy
(
hs_r_conns
,
spider
->
hs_r_conns
,
sizeof
(
SPIDER_CONN
*
)
*
share
->
link_count
);
memcpy
(
hs_w_conns
,
spider
->
hs_w_conns
,
sizeof
(
SPIDER_CONN
*
)
*
share
->
link_count
);
#endif
spider_thread_id
=
spider
->
spider_thread_id
;
trx_conn_adjustment
=
spider
->
trx_conn_adjustment
;
#if defined(HS_HAS_SQLCOM) && defined(HAVE_HANDLERSOCKET)
...
...
@@ -12134,6 +12146,8 @@ int ha_spider::sync_from_clone_source(
external_lock_cnt
=
spider
->
external_lock_cnt
;
}
#ifdef HANDLER_HAS_DIRECT_UPDATE_ROWS
#if defined(HS_HAS_SQLCOM) && defined(HAVE_HANDLERSOCKET)
if
(
spider
->
hs_pushed_ret_fields_num
<
MAX_FIELDS
)
{
SPIDER_HS_UINT32_INFO
tmp_info
;
...
...
@@ -12144,6 +12158,8 @@ int ha_spider::sync_from_clone_source(
DBUG_RETURN
(
error_num
);
}
}
#endif
#endif
DBUG_PRINT
(
"info"
,(
"spider bulk_access_link->spider->dbton_handler=%p"
,
dbton_handler
));
DBUG_PRINT
(
"info"
,(
"spider ptr bulk_access_link->spider->dbton_handler=%p"
,
...
...
storage/spider/spd_db_conn.cc
View file @
993dd378
...
...
@@ -5605,7 +5605,6 @@ int spider_db_bulk_bulk_insert(
)
{
int
error_num
=
0
,
first_insert_link_idx
=
-
1
,
tmp_error_num
;
int
roop_count2
;
SPIDER_RESULT_LIST
*
result_list
=
&
spider
->
result_list
;
SPIDER_SHARE
*
share
=
spider
->
share
;
SPIDER_CONN
*
conn
,
*
first_insert_conn
=
NULL
;
TABLE
*
table
=
spider
->
get_table
();
...
...
@@ -5645,6 +5644,7 @@ int spider_db_bulk_bulk_insert(
if
(
conn
->
conn_kind
!=
SPIDER_CONN_KIND_MYSQL
)
{
uint
roop_count
;
SPIDER_RESULT_LIST
*
result_list
=
&
spider
->
result_list
;
DBUG_PRINT
(
"info"
,(
"spider conn=%p"
,
conn
));
DBUG_PRINT
(
"info"
,(
"spider result_list->hs_upd_rows=%llu"
,
result_list
->
hs_upd_rows
));
...
...
@@ -6584,9 +6584,9 @@ int spider_db_bulk_direct_update(
#if defined(HS_HAS_SQLCOM) && defined(HAVE_HANDLERSOCKET)
if
(
!
spider_bit_is_set
(
spider
->
do_hs_direct_update
,
roop_count
))
{
#endif
if
(
!
counted
)
{
#endif
*
update_rows
=
spider
->
conns
[
roop_count
]
->
db_conn
->
affected_rows
();
DBUG_PRINT
(
"info"
,
(
"spider update_rows = %u"
,
*
update_rows
));
counted
=
TRUE
;
...
...
@@ -9953,7 +9953,9 @@ int spider_db_bulk_open_handler(
int
link_idx
)
{
int
error_num
=
0
;
#if defined(HS_HAS_SQLCOM) && defined(HAVE_HANDLERSOCKET)
bool
opening_index
=
FALSE
;
#endif
DBUG_ENTER
(
"spider_db_bulk_open_handler"
);
DBUG_PRINT
(
"info"
,(
"spider spider=%p"
,
spider
));
DBUG_PRINT
(
"info"
,(
"spider conn=%p"
,
conn
));
...
...
storage/spider/spd_db_include.h
View file @
993dd378
...
...
@@ -26,6 +26,10 @@
#define SPIDER_HAS_SHOW_SIMPLE_FUNC
#endif
#if defined(MARIADB_BASE_VERSION) && MYSQL_VERSION_ID >= 100007
#define SPIDER_HAS_DISCOVER_TABLE_STRUCTURE_COMMENT
#endif
#if defined(MARIADB_BASE_VERSION) && MYSQL_VERSION_ID >= 100004
#define SPIDER_HAS_TIME_STATUS
#define SPIDER_HAS_DECIMAL_OPERATION_RESULTS_VALUE_TYPE
...
...
storage/spider/spd_table.cc
View file @
993dd378
...
...
@@ -4323,10 +4323,12 @@ SPIDER_SHARE *spider_get_share(
&
result_list
->
tmp_table_created
,
sizeof
(
uchar
)
*
share
->
link_bitmap_size
,
#ifdef HA_CAN_BULK_ACCESS
#if defined(HS_HAS_SQLCOM) && defined(HAVE_HANDLERSOCKET)
&
result_list
->
hs_r_bulk_open_index
,
sizeof
(
uchar
)
*
share
->
link_bitmap_size
,
&
result_list
->
hs_w_bulk_open_index
,
sizeof
(
uchar
)
*
share
->
link_bitmap_size
,
#endif
#endif
&
result_list
->
sql_kind_backup
,
sizeof
(
uint
)
*
share
->
link_count
,
&
spider
->
dbton_handler
,
...
...
@@ -4762,10 +4764,12 @@ SPIDER_SHARE *spider_get_share(
&
result_list
->
tmp_table_created
,
sizeof
(
uchar
)
*
share
->
link_bitmap_size
,
#ifdef HA_CAN_BULK_ACCESS
#if defined(HS_HAS_SQLCOM) && defined(HAVE_HANDLERSOCKET)
&
result_list
->
hs_r_bulk_open_index
,
sizeof
(
uchar
)
*
share
->
link_bitmap_size
,
&
result_list
->
hs_w_bulk_open_index
,
sizeof
(
uchar
)
*
share
->
link_bitmap_size
,
#endif
#endif
&
result_list
->
sql_kind_backup
,
sizeof
(
uint
)
*
share
->
link_count
,
&
spider
->
dbton_handler
,
...
...
@@ -8049,8 +8053,13 @@ int spider_discover_table_structure(
{
DBUG_RETURN
(
ER_SPIDER_UNKNOWN_NUM
);
}
#ifdef SPIDER_HAS_DISCOVER_TABLE_STRUCTURE_COMMENT
if
(
!
(
part_syntax
=
generate_partition_syntax
(
part_info
,
&
part_syntax_len
,
FALSE
,
TRUE
,
info
,
NULL
,
NULL
)))
#else
if
(
!
(
part_syntax
=
generate_partition_syntax
(
part_info
,
&
part_syntax_len
,
FALSE
,
TRUE
,
info
,
NULL
)))
#endif
{
DBUG_RETURN
(
HA_ERR_OUT_OF_MEM
);
}
...
...
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