Skip to content

Commit de4c9f4

Browse files
committed
change some ibool to bool
1 parent e14790b commit de4c9f4

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

storage/innobase/btr/btr0cur.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2972,7 +2972,7 @@ btr_cur_ins_lock_and_undo(
29722972
dtuple_t* entry,/*!< in/out: entry to insert */
29732973
que_thr_t* thr,/*!< in: query thread or NULL */
29742974
mtr_t* mtr,/*!< in/out: mini-transaction */
2975-
ibool* inherit)/*!< out: TRUE if the inserted new record maybe
2975+
bool* inherit)/*!< out: true if the inserted new record maybe
29762976
should inherit LOCK_GAP type locks from the
29772977
successor record */
29782978
{
@@ -3114,9 +3114,9 @@ btr_cur_optimistic_insert(
31143114
buf_block_t* block;
31153115
page_t* page;
31163116
rec_t* dummy;
3117-
iboolleaf;
3118-
iboolreorg;
3119-
iboolinherit = TRUE;
3117+
boolleaf;
3118+
boolreorg;
3119+
boolinherit = true;
31203120
ulint rec_size;
31213121
dberr_terr;
31223122

@@ -3407,7 +3407,7 @@ btr_cur_pessimistic_insert(
34073407
dict_index_t* index = cursor->index;
34083408
big_rec_t* big_rec_vec = NULL;
34093409
dberr_terr;
3410-
iboolinherit = FALSE;
3410+
boolinherit = false;
34113411
boolsuccess;
34123412
ulint n_reserved = 0;
34133413

@@ -3518,7 +3518,7 @@ btr_cur_pessimistic_insert(
35183518
== FIL_NULL) {
35193519
/* split and inserted need to call
35203520
lock_update_insert() always. */
3521-
inherit = TRUE;
3521+
inherit = true;
35223522
}
35233523
}
35243524
}

storage/innobase/include/lock0lock.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ lock_rec_insert_check_and_lock(
296296
dict_index_t* index,/*!< in: index */
297297
que_thr_t* thr,/*!< in: query thread */
298298
mtr_t* mtr,/*!< in/out: mini-transaction */
299-
ibool* inherit)/*!< out: set to TRUE if the new
299+
bool* inherit)/*!< out: set to true if the new
300300
inserted record maybe should inherit
301301
LOCK_GAP type locks from the successor
302302
record */

storage/innobase/lock/lock0lock.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5981,7 +5981,7 @@ lock_rec_insert_check_and_lock(
59815981
dict_index_t* index,/*!< in: index */
59825982
que_thr_t* thr,/*!< in: query thread */
59835983
mtr_t* mtr,/*!< in/out: mini-transaction */
5984-
ibool* inherit)/*!< out: set to TRUE if the new
5984+
bool* inherit)/*!< out: set to true if the new
59855985
inserted record maybe should inherit
59865986
LOCK_GAP type locks from the successor
59875987
record */
@@ -6002,7 +6002,7 @@ lock_rec_insert_check_and_lock(
60026002

60036003
dberr_terr;
60046004
lock_t* lock;
6005-
iboolinherit_in = *inherit;
6005+
boolinherit_in = *inherit;
60066006
trx_t* trx = thr_get_trx(thr);
60076007
const rec_t* next_rec = page_rec_get_next_const(rec);
60086008
ulint heap_no = page_rec_get_heap_no(next_rec);
@@ -6032,7 +6032,7 @@ lock_rec_insert_check_and_lock(
60326032
trx->id, mtr);
60336033
}
60346034

6035-
*inherit = FALSE;
6035+
*inherit = false;
60366036

60376037
return(DB_SUCCESS);
60386038
}
@@ -6043,7 +6043,7 @@ lock_rec_insert_check_and_lock(
60436043
return(DB_SUCCESS);
60446044
}
60456045

6046-
*inherit = TRUE;
6046+
*inherit = true;
60476047

60486048
/* If another transaction has an explicit lock request which locks
60496049
the gap, waiting or granted, on the successor, the insert has to wait.

0 commit comments

Comments
 (0)