diff options
author | guilhem@mysql.com <> | 2003-10-31 23:20:23 +0100 |
---|---|---|
committer | guilhem@mysql.com <> | 2003-10-31 23:20:23 +0100 |
commit | c1f7f3396005d40470a4ae069c57aa48ad645ac3 (patch) | |
tree | 498d4bfea3f5514d76aac06dd4120c7aa8b1a02c /sql/sql_class.cc | |
parent | 975177fdb2406cd3191a1e60f25a2ba5a1fb7324 (diff) | |
download | mariadb-git-c1f7f3396005d40470a4ae069c57aa48ad645ac3.tar.gz |
4 small items in this:
- when we don't have in_addr_t, use uint32.
- a forgotten initialization of slave_proxy_id in sql/log_event.cc (was not really "forgot", was
"we needn't init it there", but there was one case where we needed...).
- made slave_proxy_id always meaningful in THD and Log_event, so we can
rely more on it (no need to test if it's meaningful). THD::slave_proxy_id
is equal to THD::thread_id except for the slave SQL thread.
- clean up the slave's temporary table (i.e. free their memory) when slave
server shuts down.
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r-- | sql/sql_class.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc index 132e0d7745f..3ea61da28fc 100644 --- a/sql/sql_class.cc +++ b/sql/sql_class.cc @@ -323,6 +323,11 @@ bool THD::store_globals() return 1; mysys_var=my_thread_var; dbug_thread_id=my_thread_id(); + /* + By default 'slave_proxy_id' is 'thread_id'. They may later become different + if this is the slave SQL thread. + */ + slave_proxy_id= thread_id; return 0; } |