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
d14628a8
Commit
d14628a8
authored
Jun 30, 2009
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: lock_is_on_table(), lock_table_unlock(): Unused, remove.
parent
40f23241
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
58 deletions
+0
-58
include/lock0lock.h
include/lock0lock.h
+0
-16
lock/lock0lock.c
lock/lock0lock.c
+0
-42
No files found.
include/lock0lock.h
View file @
d14628a8
...
@@ -461,14 +461,6 @@ lock_table(
...
@@ -461,14 +461,6 @@ lock_table(
dict_table_t
*
table
,
/*!< in: database table in dictionary cache */
dict_table_t
*
table
,
/*!< in: database table in dictionary cache */
enum
lock_mode
mode
,
/*!< in: lock mode */
enum
lock_mode
mode
,
/*!< in: lock mode */
que_thr_t
*
thr
);
/*!< in: query thread */
que_thr_t
*
thr
);
/*!< in: query thread */
/*********************************************************************//**
Checks if there are any locks set on the table.
@return TRUE if there are lock(s) */
UNIV_INTERN
ibool
lock_is_on_table
(
/*=============*/
dict_table_t
*
table
);
/*!< in: database table in dictionary cache */
/*************************************************************//**
/*************************************************************//**
Removes a granted record lock of a transaction from the queue and grants
Removes a granted record lock of a transaction from the queue and grants
locks to other transactions waiting in the queue if they now are entitled
locks to other transactions waiting in the queue if they now are entitled
...
@@ -483,14 +475,6 @@ lock_rec_unlock(
...
@@ -483,14 +475,6 @@ lock_rec_unlock(
const
rec_t
*
rec
,
/*!< in: record */
const
rec_t
*
rec
,
/*!< in: record */
enum
lock_mode
lock_mode
);
/*!< in: LOCK_S or LOCK_X */
enum
lock_mode
lock_mode
);
/*!< in: LOCK_S or LOCK_X */
/*********************************************************************//**
/*********************************************************************//**
Releases a table lock.
Releases possible other transactions waiting for this lock. */
UNIV_INTERN
void
lock_table_unlock
(
/*==============*/
lock_t
*
lock
);
/*!< in: lock */
/*********************************************************************//**
Releases transaction locks, and releases possible other transactions waiting
Releases transaction locks, and releases possible other transactions waiting
because of these locks. */
because of these locks. */
UNIV_INTERN
UNIV_INTERN
...
...
lock/lock0lock.c
View file @
d14628a8
...
@@ -3767,32 +3767,6 @@ lock_table(
...
@@ -3767,32 +3767,6 @@ lock_table(
return
(
DB_SUCCESS
);
return
(
DB_SUCCESS
);
}
}
/*********************************************************************//**
Checks if there are any locks set on the table.
@return TRUE if there are lock(s) */
UNIV_INTERN
ibool
lock_is_on_table
(
/*=============*/
dict_table_t
*
table
)
/*!< in: database table in dictionary cache */
{
ibool
ret
;
ut_ad
(
table
);
lock_mutex_enter_kernel
();
if
(
UT_LIST_GET_LAST
(
table
->
locks
))
{
ret
=
TRUE
;
}
else
{
ret
=
FALSE
;
}
lock_mutex_exit_kernel
();
return
(
ret
);
}
/*********************************************************************//**
/*********************************************************************//**
Checks if a waiting table lock request still has to wait in a queue.
Checks if a waiting table lock request still has to wait in a queue.
@return TRUE if still has to wait */
@return TRUE if still has to wait */
...
@@ -3936,22 +3910,6 @@ lock_rec_unlock(
...
@@ -3936,22 +3910,6 @@ lock_rec_unlock(
mutex_exit
(
&
kernel_mutex
);
mutex_exit
(
&
kernel_mutex
);
}
}
/*********************************************************************//**
Releases a table lock.
Releases possible other transactions waiting for this lock. */
UNIV_INTERN
void
lock_table_unlock
(
/*==============*/
lock_t
*
lock
)
/*!< in: lock */
{
mutex_enter
(
&
kernel_mutex
);
lock_table_dequeue
(
lock
);
mutex_exit
(
&
kernel_mutex
);
}
/*********************************************************************//**
/*********************************************************************//**
Releases transaction locks, and releases possible other transactions waiting
Releases transaction locks, and releases possible other transactions waiting
because of these locks. */
because of these locks. */
...
...
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