Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.84 KB | None | 0 0
  1. <<<<<<< HEAD
  2. /*************************************************************//**
  3. Removes a record lock request, waiting or granted, from the queue and
  4. grants locks to other transactions in the queue if they now are entitled
  5. to a lock. NOTE: all record locks contained in in_lock are removed. */
  6. void
  7. lock_rec_dequeue_from_page(
  8. /*=======================*/
  9. lock_t* in_lock); /*!< in: record lock object: all
  10. record locks which are contained in
  11. this lock object are removed;
  12. transactions waiting behind will
  13. get their lock requests granted,
  14. if they are now qualified to it */
  15.  
  16. /*************************************************************//**
  17. Moves the locks of a record to another record and resets the lock bits of
  18. the donating record. */
  19. UNIV_INLINE
  20. void
  21. lock_rec_move(
  22. /*==========*/
  23. const buf_block_t* receiver, /*!< in: buffer block containing
  24. the receiving record */
  25. const buf_block_t* donator, /*!< in: buffer block containing
  26. the donating record */
  27. ulint receiver_heap_no,/*!< in: heap_no of the record
  28. which gets the locks; there
  29. must be no lock requests
  30. on it! */
  31. ulint donator_heap_no);/*!< in: heap_no of the record
  32. which gives the locks */
  33.  
  34. /*************************************************************//**
  35. Moves the locks of a record to another record and resets the lock bits of
  36. the donating record. */
  37. void
  38. lock_rec_move_low(
  39. /*==============*/
  40. hash_table_t* lock_hash, /*!< in: hash table to use */
  41. const buf_block_t* receiver, /*!< in: buffer block containing
  42. the receiving record */
  43. const buf_block_t* donator, /*!< in: buffer block containing
  44. the donating record */
  45. ulint receiver_heap_no,/*!< in: heap_no of the record
  46. which gets the locks; there
  47. must be no lock requests
  48. on it! */
  49. ulint donator_heap_no);/*!< in: heap_no of the record
  50. which gives the locks */
  51. =======
  52. /*********************************************************************//**
  53. Enqueues a waiting request for a lock which cannot be granted immediately.
  54. Checks for deadlocks.
  55. @return DB_LOCK_WAIT, DB_DEADLOCK, or DB_QUE_THR_SUSPENDED, or
  56. DB_SUCCESS_LOCKED_REC; DB_SUCCESS_LOCKED_REC means that
  57. there was a deadlock, but another transaction was chosen as a victim,
  58. and we got the lock immediately: no need to wait then */
  59. dberr_t
  60. lock_rec_enqueue_waiting(
  61. /*=====================*/
  62. ulint type_mode,/*!< in: lock mode this
  63. transaction is requesting:
  64. LOCK_S or LOCK_X, possibly
  65. ORed with LOCK_GAP or
  66. LOCK_REC_NOT_GAP, ORed with
  67. LOCK_INSERT_INTENTION if this
  68. waiting lock request is set
  69. when performing an insert of
  70. an index record */
  71. const buf_block_t* block, /*!< in: buffer block containing
  72. the record */
  73. ulint heap_no,/*!< in: heap number of the record */
  74. dict_index_t* index, /*!< in: index of record */
  75. que_thr_t* thr, /*!< in: query thread */
  76. lock_prdt_t* prdt); /*!< in: Minimum Bounding Box */
  77.  
  78. >>>>>>> origin/bb-10.2-ext
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement