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
Hide 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
...
@@ -200,20 +200,21 @@ to disk (but of course not as optimally as simple calling a sync on
...
@@ -200,20 +200,21 @@ to disk (but of course not as optimally as simple calling a sync on
all tables)!
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
@file
{
sql/lock.cc::mysql
_
lock
_
tables()
}
and
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()
}
.
@file
{
sql/sql
_
base.cc::wait
_
for
_
tables()
}
.
@item
@item
...
...
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