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
15070b3a
Commit
15070b3a
authored
Jul 14, 2007
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge chilla.local:/home/mydev/mysql-5.0-amain
into chilla.local:/home/mydev/mysql-5.0-axmrg
parents
bf30f9e1
a9c6a0bb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
sql/sql_class.cc
sql/sql_class.cc
+10
-1
No files found.
sql/sql_class.cc
View file @
15070b3a
...
...
@@ -211,7 +211,7 @@ THD::THD()
time_after_lock
=
(
time_t
)
0
;
current_linfo
=
0
;
slave_thread
=
0
;
variables
.
pseudo_
thread_id
=
0
;
thread_id
=
0
;
one_shot_set
=
0
;
file_id
=
0
;
query_id
=
0
;
...
...
@@ -328,6 +328,12 @@ void THD::init(void)
variables
.
date_format
);
variables
.
datetime_format
=
date_time_format_copy
((
THD
*
)
0
,
variables
.
datetime_format
);
/*
variables= global_system_variables above has reset
variables.pseudo_thread_id to 0. We need to correct it here to
avoid temporary tables replication failure.
*/
variables
.
pseudo_thread_id
=
thread_id
;
pthread_mutex_unlock
(
&
LOCK_global_system_variables
);
server_status
=
SERVER_STATUS_AUTOCOMMIT
;
if
(
variables
.
sql_mode
&
MODE_NO_BACKSLASH_ESCAPES
)
...
...
@@ -579,6 +585,9 @@ bool THD::store_globals()
By default 'slave_proxy_id' is 'thread_id'. They may later become different
if this is the slave SQL thread.
*/
/** @todo we already do it in init(), see if we still need to do it here.
add DBUG_ASSERT(variables.pseudo_thread_id == thread_id)
*/
variables
.
pseudo_thread_id
=
thread_id
;
/*
We have to call thr_lock_info_init() again here as THD may have been
...
...
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