Commit 15fa6db1 authored by unknown's avatar unknown

indentation change

parent 6b3b7c02
...@@ -202,17 +202,18 @@ all tables)! ...@@ -202,17 +202,18 @@ all tables)!
@item @item
When one does a @code{FLUSH TABLES}, the variable @code{refresh_version} When one does a @code{FLUSH TABLES}, the variable @code{refresh_version}
will be incremented. Every time a thread releases a table it checks if will be incremented. Every time a thread releases a table it checks if
the refresh version of the table (updated at open) is the same as the refresh version of the table (TABLE->version), which is updated at
the current @code{refresh_version}. If not it will close it and broadcast open, is the same as the current @code{refresh_version}. If not it will
a signal on @code{COND_refresh} (to wait any thread that is waiting for close it and broadcast a signal on @code{COND_refresh} (to wake up any
all instanses of a table to be closed). thread that is waiting for all instanses of a table to be closed).
@item @item
The current @code{refresh_version} is also compared to the open The current @code{refresh_version} is also compared to the open
@code{refresh_version} after a thread gets a lock on a table. If the @code{refresh_version} after a thread gets a lock on a table. If the
refresh version is different the thread will free all locks, reopen the refresh version is different the thread will free all locks, wait for
table and try to get the locks again; This is just to quickly get all all 'old' tables to be closed (in wait_for_refresh() ) reopen the table
tables to use the newest version. This is handled by and try to get the locks again; This is just to quickly get all tables
to use the newest version. This is handled by
@file{sql/lock.cc::mysql_lock_tables()} and @file{sql/lock.cc::mysql_lock_tables()} and
@file{sql/sql_base.cc::wait_for_tables()}. @file{sql/sql_base.cc::wait_for_tables()}.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment