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
fa9c26f4
Commit
fa9c26f4
authored
Aug 01, 2007
by
ramil/ram@mysql.com/ramil.myoffice.izhnet.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
After-merge fixup.
- THD::tmp_table_used removed, THD::thread_specific_used used instead.
parent
c5209fcb
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
9 additions
and
11 deletions
+9
-11
sql/item_create.cc
sql/item_create.cc
+1
-0
sql/log_event.cc
sql/log_event.cc
+3
-5
sql/sql_base.cc
sql/sql_base.cc
+1
-1
sql/sql_class.cc
sql/sql_class.cc
+1
-1
sql/sql_class.h
sql/sql_class.h
+0
-1
sql/sql_parse.cc
sql/sql_parse.cc
+1
-1
sql/sql_table.cc
sql/sql_table.cc
+2
-2
No files found.
sql/item_create.cc
View file @
fa9c26f4
...
...
@@ -2861,6 +2861,7 @@ Item*
Create_func_connection_id
::
create
(
THD
*
thd
)
{
thd
->
lex
->
safe_to_cache_query
=
0
;
thd
->
thread_specific_used
=
TRUE
;
return
new
(
thd
->
mem_root
)
Item_func_connection_id
();
}
...
...
sql/log_event.cc
View file @
fa9c26f4
...
...
@@ -1479,9 +1479,8 @@ Query_log_event::Query_log_event(THD* thd_arg, const char* query_arg,
ulong
query_length
,
bool
using_trans
,
bool
suppress_use
,
THD
::
killed_state
killed_status_arg
)
:
Log_event
(
thd_arg
,
((
thd_arg
->
tmp_table_used
||
thd_arg
->
thread_specific_used
)
?
LOG_EVENT_THREAD_SPECIFIC_F
:
0
)
|
(
suppress_use
?
LOG_EVENT_SUPPRESS_USE_F
:
0
),
(
thd_arg
->
thread_specific_used
?
LOG_EVENT_THREAD_SPECIFIC_F
:
0
)
|
(
suppress_use
?
LOG_EVENT_SUPPRESS_USE_F
:
0
),
using_trans
),
data_buf
(
0
),
query
(
query_arg
),
catalog
(
thd_arg
->
catalog
),
db
(
thd_arg
->
db
),
q_len
((
uint32
)
query_length
),
...
...
@@ -2914,8 +2913,7 @@ Load_log_event::Load_log_event(THD *thd_arg, sql_exchange *ex,
enum
enum_duplicates
handle_dup
,
bool
ignore
,
bool
using_trans
)
:
Log_event
(
thd_arg
,
(
thd_arg
->
tmp_table_used
||
thd_arg
->
thread_specific_used
)
?
LOG_EVENT_THREAD_SPECIFIC_F
:
0
,
thd_arg
->
thread_specific_used
?
LOG_EVENT_THREAD_SPECIFIC_F
:
0
,
using_trans
),
thread_id
(
thd_arg
->
thread_id
),
slave_proxy_id
(
thd_arg
->
variables
.
pseudo_thread_id
),
...
...
sql/sql_base.cc
View file @
fa9c26f4
...
...
@@ -2277,7 +2277,7 @@ TABLE *open_table(THD *thd, TABLE_LIST *table_list, MEM_ROOT *mem_root,
}
table
->
query_id
=
thd
->
query_id
;
table
->
clear_query_id
=
1
;
thd
->
t
mp_table_used
=
1
;
thd
->
t
hread_specific_used
=
TRUE
;
DBUG_PRINT
(
"info"
,(
"Using temporary table"
));
goto
reset
;
}
...
...
sql/sql_class.cc
View file @
fa9c26f4
...
...
@@ -394,7 +394,7 @@ THD::THD()
count_cuted_fields
=
CHECK_FIELD_IGNORE
;
killed
=
NOT_KILLED
;
db_length
=
col_access
=
0
;
query_error
=
t
mp_table_used
=
thread_specific_used
=
0
;
query_error
=
t
hread_specific_used
=
FALSE
;
hash_clear
(
&
handler_tables_hash
);
tmp_table
=
0
;
used_tables
=
0
;
...
...
sql/sql_class.h
View file @
fa9c26f4
...
...
@@ -1405,7 +1405,6 @@ class THD :public Statement,
bool
substitute_null_with_insert_id
;
bool
in_lock_tables
;
bool
query_error
,
bootstrap
,
cleanup_done
;
bool
tmp_table_used
;
/** is set if some thread specific value(s) used in a statement. */
bool
thread_specific_used
;
...
...
sql/sql_parse.cc
View file @
fa9c26f4
...
...
@@ -5150,7 +5150,7 @@ void mysql_reset_thd_for_next_command(THD *thd)
thd
->
no_trans_update
.
all
=
FALSE
;
}
DBUG_ASSERT
(
thd
->
security_ctx
==
&
thd
->
main_security_ctx
);
thd
->
t
mp_table_used
=
0
;
thd
->
t
hread_specific_used
=
FALSE
;
if
(
!
thd
->
in_sub_stmt
)
{
if
(
opt_bin_log
)
...
...
sql/sql_table.cc
View file @
fa9c26f4
...
...
@@ -1656,7 +1656,7 @@ int mysql_rm_table_part2(THD *thd, TABLE_LIST *tables, bool if_exists,
on the table name.
*/
pthread_mutex_unlock
(
&
LOCK_open
);
thd
->
t
mp_table_used
=
tmp_table_deleted
;
thd
->
t
hread_specific_used
|
=
tmp_table_deleted
;
error
=
0
;
if
(
wrong_tables
.
length
())
{
...
...
@@ -3408,7 +3408,7 @@ bool mysql_create_table_no_lock(THD *thd,
(
void
)
rm_temporary_table
(
create_info
->
db_type
,
path
);
goto
unlock_and_end
;
}
thd
->
t
mp_table_used
=
1
;
thd
->
t
hread_specific_used
=
TRUE
;
}
/*
...
...
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