Commit d14628a8 authored by marko's avatar marko

branches/zip: lock_is_on_table(), lock_table_unlock(): Unused, remove.

parent 40f23241
...@@ -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
......
...@@ -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. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment