Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
de4c9f46
Commit
de4c9f46
authored
Feb 13, 2018
by
Eugene Kosov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change some ibool to bool
parent
e14790b8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
storage/innobase/btr/btr0cur.cc
storage/innobase/btr/btr0cur.cc
+6
-6
storage/innobase/include/lock0lock.h
storage/innobase/include/lock0lock.h
+1
-1
storage/innobase/lock/lock0lock.cc
storage/innobase/lock/lock0lock.cc
+4
-4
No files found.
storage/innobase/btr/btr0cur.cc
View file @
de4c9f46
...
...
@@ -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
;
i
bool
leaf
;
i
bool
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
;
}
}
}
...
...
storage/innobase/include/lock0lock.h
View file @
de4c9f46
...
...
@@ -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 */
...
...
storage/innobase/lock/lock0lock.cc
View file @
de4c9f46
...
...
@@ -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
;
i
bool
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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment