Commit de4c9f46 authored by Eugene Kosov's avatar Eugene Kosov

change some ibool to bool

parent e14790b8
......@@ -2972,7 +2972,7 @@ btr_cur_ins_lock_and_undo(
dtuple_t* entry, /*!< in/out: entry to insert */
que_thr_t* thr, /*!< in: query thread or NULL */
mtr_t* mtr, /*!< in/out: mini-transaction */
ibool* inherit)/*!< out: TRUE if the inserted new record maybe
bool* inherit)/*!< out: true if the inserted new record maybe
should inherit LOCK_GAP type locks from the
successor record */
{
......@@ -3114,9 +3114,9 @@ btr_cur_optimistic_insert(
buf_block_t* block;
page_t* page;
rec_t* dummy;
ibool leaf;
ibool reorg;
ibool inherit = TRUE;
bool leaf;
bool reorg;
bool inherit = true;
ulint rec_size;
dberr_t err;
......@@ -3407,7 +3407,7 @@ btr_cur_pessimistic_insert(
dict_index_t* index = cursor->index;
big_rec_t* big_rec_vec = NULL;
dberr_t err;
ibool inherit = FALSE;
bool inherit = false;
bool success;
ulint n_reserved = 0;
......@@ -3518,7 +3518,7 @@ btr_cur_pessimistic_insert(
== FIL_NULL) {
/* split and inserted need to call
lock_update_insert() always. */
inherit = TRUE;
inherit = true;
}
}
}
......
......@@ -296,7 +296,7 @@ lock_rec_insert_check_and_lock(
dict_index_t* index, /*!< in: index */
que_thr_t* thr, /*!< in: query thread */
mtr_t* mtr, /*!< in/out: mini-transaction */
ibool* inherit)/*!< out: set to TRUE if the new
bool* inherit)/*!< out: set to true if the new
inserted record maybe should inherit
LOCK_GAP type locks from the successor
record */
......
......@@ -5981,7 +5981,7 @@ lock_rec_insert_check_and_lock(
dict_index_t* index, /*!< in: index */
que_thr_t* thr, /*!< in: query thread */
mtr_t* mtr, /*!< in/out: mini-transaction */
ibool* inherit)/*!< out: set to TRUE if the new
bool* inherit)/*!< out: set to true if the new
inserted record maybe should inherit
LOCK_GAP type locks from the successor
record */
......@@ -6002,7 +6002,7 @@ lock_rec_insert_check_and_lock(
dberr_t err;
lock_t* lock;
ibool inherit_in = *inherit;
bool inherit_in = *inherit;
trx_t* trx = thr_get_trx(thr);
const rec_t* next_rec = page_rec_get_next_const(rec);
ulint heap_no = page_rec_get_heap_no(next_rec);
......@@ -6032,7 +6032,7 @@ lock_rec_insert_check_and_lock(
trx->id, mtr);
}
*inherit = FALSE;
*inherit = false;
return(DB_SUCCESS);
}
......@@ -6043,7 +6043,7 @@ lock_rec_insert_check_and_lock(
return(DB_SUCCESS);
}
*inherit = TRUE;
*inherit = true;
/* If another transaction has an explicit lock request which locks
the gap, waiting or granted, on the successor, the insert has to wait.
......
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