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
a65beee0
Commit
a65beee0
authored
Nov 21, 2002
by
monty@mashka.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added 'table lock' state while MySQL is waiting to get locks for tables.
parent
dd1b7e0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
sql/lock.cc
sql/lock.cc
+3
-1
No files found.
sql/lock.cc
View file @
a65beee0
...
@@ -117,7 +117,7 @@ MYSQL_LOCK *mysql_lock_tables(THD *thd,TABLE **tables,uint count)
...
@@ -117,7 +117,7 @@ MYSQL_LOCK *mysql_lock_tables(THD *thd,TABLE **tables,uint count)
thd
->
proc_info
=
0
;
thd
->
proc_info
=
0
;
break
;
break
;
}
}
thd
->
proc_info
=
0
;
thd
->
proc_info
=
"Table lock"
;
thd
->
locked
=
1
;
thd
->
locked
=
1
;
if
(
thr_multi_lock
(
sql_lock
->
locks
,
sql_lock
->
lock_count
))
if
(
thr_multi_lock
(
sql_lock
->
locks
,
sql_lock
->
lock_count
))
{
{
...
@@ -136,6 +136,7 @@ MYSQL_LOCK *mysql_lock_tables(THD *thd,TABLE **tables,uint count)
...
@@ -136,6 +136,7 @@ MYSQL_LOCK *mysql_lock_tables(THD *thd,TABLE **tables,uint count)
thd
->
locked
=
0
;
thd
->
locked
=
0
;
break
;
break
;
}
}
thd
->
proc_info
=
0
;
/* some table was altered or deleted. reopen tables marked deleted */
/* some table was altered or deleted. reopen tables marked deleted */
mysql_unlock_tables
(
thd
,
sql_lock
);
mysql_unlock_tables
(
thd
,
sql_lock
);
...
@@ -145,6 +146,7 @@ retry:
...
@@ -145,6 +146,7 @@ retry:
if
(
wait_for_tables
(
thd
))
if
(
wait_for_tables
(
thd
))
break
;
// Couldn't open tables
break
;
// Couldn't open tables
}
}
thd
->
proc_info
=
0
;
if
(
thd
->
killed
)
if
(
thd
->
killed
)
{
{
my_error
(
ER_SERVER_SHUTDOWN
,
MYF
(
0
));
my_error
(
ER_SERVER_SHUTDOWN
,
MYF
(
0
));
...
...
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