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
f12e92db
Commit
f12e92db
authored
Aug 24, 2013
by
Kentoku SHIBA
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for parallel search. #1129074
parent
49a4bbe1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
8 deletions
+20
-8
storage/spider/ha_spider.cc
storage/spider/ha_spider.cc
+4
-4
storage/spider/spd_conn.cc
storage/spider/spd_conn.cc
+16
-4
No files found.
storage/spider/ha_spider.cc
View file @
f12e92db
...
@@ -6748,10 +6748,6 @@ int ha_spider::rnd_init(
...
@@ -6748,10 +6748,6 @@ int ha_spider::rnd_init(
memset
(
searched_bitmap
,
0xFF
,
no_bytes_in_map
(
table
->
read_set
));
memset
(
searched_bitmap
,
0xFF
,
no_bytes_in_map
(
table
->
read_set
));
}
}
#ifndef WITHOUT_SPIDER_BG_SEARCH
if
((
error_num
=
spider_set_conn_bg_param
(
this
)))
DBUG_RETURN
(
error_num
);
#endif
set_select_column_mode
();
set_select_column_mode
();
result_list
.
keyread
=
FALSE
;
result_list
.
keyread
=
FALSE
;
...
@@ -6830,6 +6826,10 @@ int ha_spider::rnd_next_internal(
...
@@ -6830,6 +6826,10 @@ int ha_spider::rnd_next_internal(
#if defined(HS_HAS_SQLCOM) && defined(HAVE_HANDLERSOCKET)
#if defined(HS_HAS_SQLCOM) && defined(HAVE_HANDLERSOCKET)
if
(
sql_kinds
&
SPIDER_SQL_KIND_HS
)
if
(
sql_kinds
&
SPIDER_SQL_KIND_HS
)
DBUG_RETURN
(
HA_ERR_WRONG_COMMAND
);
DBUG_RETURN
(
HA_ERR_WRONG_COMMAND
);
#endif
#ifndef WITHOUT_SPIDER_BG_SEARCH
if
((
error_num
=
spider_set_conn_bg_param
(
this
)))
DBUG_RETURN
(
error_num
);
#endif
#endif
if
((
error_num
=
rnd_handler_init
()))
if
((
error_num
=
rnd_handler_init
()))
DBUG_RETURN
(
check_error_mode_eof
(
error_num
));
DBUG_RETURN
(
check_error_mode_eof
(
error_num
));
...
...
storage/spider/spd_conn.cc
View file @
f12e92db
...
@@ -1467,11 +1467,23 @@ int spider_set_conn_bg_param(
...
@@ -1467,11 +1467,23 @@ int spider_set_conn_bg_param(
else
{
else
{
result_list
->
bgs_phase
=
1
;
result_list
->
bgs_phase
=
1
;
result_list
->
bgs_split_read
=
spider_bg_split_read_param
(
spider
);
if
(
spider
->
use_pre_call
)
{
DBUG_PRINT
(
"info"
,(
"spider use_pre_call=TRUE"
));
result_list
->
bgs_first_read
=
result_list
->
bgs_split_read
;
result_list
->
bgs_second_read
=
result_list
->
bgs_split_read
;
}
else
{
DBUG_PRINT
(
"info"
,(
"spider use_pre_call=FALSE"
));
result_list
->
bgs_first_read
=
result_list
->
bgs_first_read
=
spider_param_bgs_first_read
(
thd
,
share
->
bgs_first_read
);
spider_param_bgs_first_read
(
thd
,
share
->
bgs_first_read
);
result_list
->
bgs_second_read
=
result_list
->
bgs_second_read
=
spider_param_bgs_second_read
(
thd
,
share
->
bgs_second_read
);
spider_param_bgs_second_read
(
thd
,
share
->
bgs_second_read
);
result_list
->
bgs_split_read
=
spider_bg_split_read_param
(
spider
);
}
DBUG_PRINT
(
"info"
,(
"spider bgs_split_read=%lld"
,
result_list
->
bgs_split_read
));
DBUG_PRINT
(
"info"
,(
"spider bgs_first_read=%lld"
,
share
->
bgs_first_read
));
DBUG_PRINT
(
"info"
,(
"spider bgs_second_read=%lld"
,
share
->
bgs_second_read
));
result_list
->
split_read
=
result_list
->
split_read
=
result_list
->
bgs_first_read
>
0
?
result_list
->
bgs_first_read
>
0
?
...
...
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