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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
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)
thd
->
proc_info
=
0
;
break
;
}
thd
->
proc_info
=
0
;
thd
->
proc_info
=
"Table lock"
;
thd
->
locked
=
1
;
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)
thd
->
locked
=
0
;
break
;
}
thd
->
proc_info
=
0
;
/* some table was altered or deleted. reopen tables marked deleted */
mysql_unlock_tables
(
thd
,
sql_lock
);
...
...
@@ -145,6 +146,7 @@ MYSQL_LOCK *mysql_lock_tables(THD *thd,TABLE **tables,uint count)
if
(
wait_for_tables
(
thd
))
break
;
// Couldn't open tables
}
thd
->
proc_info
=
0
;
if
(
thd
->
killed
)
{
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