Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <<<<<<< HEAD
- /*************************************************************//**
- Removes a record lock request, waiting or granted, from the queue and
- grants locks to other transactions in the queue if they now are entitled
- to a lock. NOTE: all record locks contained in in_lock are removed. */
- void
- lock_rec_dequeue_from_page(
- /*=======================*/
- lock_t* in_lock); /*!< in: record lock object: all
- record locks which are contained in
- this lock object are removed;
- transactions waiting behind will
- get their lock requests granted,
- if they are now qualified to it */
- /*************************************************************//**
- Moves the locks of a record to another record and resets the lock bits of
- the donating record. */
- UNIV_INLINE
- void
- lock_rec_move(
- /*==========*/
- const buf_block_t* receiver, /*!< in: buffer block containing
- the receiving record */
- const buf_block_t* donator, /*!< in: buffer block containing
- the donating record */
- ulint receiver_heap_no,/*!< in: heap_no of the record
- which gets the locks; there
- must be no lock requests
- on it! */
- ulint donator_heap_no);/*!< in: heap_no of the record
- which gives the locks */
- /*************************************************************//**
- Moves the locks of a record to another record and resets the lock bits of
- the donating record. */
- void
- lock_rec_move_low(
- /*==============*/
- hash_table_t* lock_hash, /*!< in: hash table to use */
- const buf_block_t* receiver, /*!< in: buffer block containing
- the receiving record */
- const buf_block_t* donator, /*!< in: buffer block containing
- the donating record */
- ulint receiver_heap_no,/*!< in: heap_no of the record
- which gets the locks; there
- must be no lock requests
- on it! */
- ulint donator_heap_no);/*!< in: heap_no of the record
- which gives the locks */
- =======
- /*********************************************************************//**
- Enqueues a waiting request for a lock which cannot be granted immediately.
- Checks for deadlocks.
- @return DB_LOCK_WAIT, DB_DEADLOCK, or DB_QUE_THR_SUSPENDED, or
- DB_SUCCESS_LOCKED_REC; DB_SUCCESS_LOCKED_REC means that
- there was a deadlock, but another transaction was chosen as a victim,
- and we got the lock immediately: no need to wait then */
- dberr_t
- lock_rec_enqueue_waiting(
- /*=====================*/
- ulint type_mode,/*!< in: lock mode this
- transaction is requesting:
- LOCK_S or LOCK_X, possibly
- ORed with LOCK_GAP or
- LOCK_REC_NOT_GAP, ORed with
- LOCK_INSERT_INTENTION if this
- waiting lock request is set
- when performing an insert of
- an index record */
- const buf_block_t* block, /*!< in: buffer block containing
- the record */
- ulint heap_no,/*!< in: heap number of the record */
- dict_index_t* index, /*!< in: index of record */
- que_thr_t* thr, /*!< in: query thread */
- lock_prdt_t* prdt); /*!< in: Minimum Bounding Box */
- >>>>>>> origin/bb-10.2-ext
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement