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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
15fa6db1
Commit
15fa6db1
authored
Jun 24, 2003
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
indentation change
parent
6b3b7c02
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
13 deletions
+14
-13
Docs/internals.texi
Docs/internals.texi
+14
-13
No files found.
Docs/internals.texi
View file @
15fa6db1
...
...
@@ -202,17 +202,18 @@ all tables)!
@item
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
the refresh version of the table (
updated at open) is the same as
the current @code
{
refresh
_
version
}
. If not it will close it and broadcast
a signal on @code
{
COND
_
refresh
}
(to wait any thread that is waiting for
all instanses of a table to be closed).
the refresh version of the table (
TABLE->version), which is updated at
open, is the same as the current @code
{
refresh
_
version
}
. If not it will
close it and broadcast a signal on @code
{
COND
_
refresh
}
(to wake up any
thread that is waiting for
all instanses of a table to be closed).
@item
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
refresh version is different the thread will free all locks, reopen the
table and try to get the locks again; This is just to quickly get all
tables to use the newest version. This is handled by
refresh version is different the thread will free all locks, wait for
all 'old' tables to be closed (in wait
_
for
_
refresh() ) reopen the table
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/sql
_
base.cc::wait
_
for
_
tables()
}
.
...
...
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