mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 20:07:13 +02:00
cleanup: remove LF_REQUIRE_PINS, use compile_time_assert() instead of reimplementing it
This commit is contained in:
parent
31a1934c9c
commit
639baee61b
6 changed files with 5 additions and 30 deletions
|
|
@ -211,8 +211,6 @@ static enum lockman_getlock_result getlock_result[10][10]=
|
|||
#undef A
|
||||
#undef x
|
||||
|
||||
LF_REQUIRE_PINS(4)
|
||||
|
||||
typedef struct lockman_lock {
|
||||
uint64 resource;
|
||||
struct lockman_lock *lonext;
|
||||
|
|
|
|||
|
|
@ -577,7 +577,6 @@ int trnman_can_read_from(TRN *trn, TrID trid)
|
|||
{
|
||||
TRN **found;
|
||||
my_bool can;
|
||||
LF_REQUIRE_PINS(3);
|
||||
|
||||
if (trid < trn->min_read_from)
|
||||
return 1; /* Row is visible by all transactions in the system */
|
||||
|
|
@ -618,7 +617,6 @@ int trnman_can_read_from(TRN *trn, TrID trid)
|
|||
TRN *trnman_trid_to_trn(TRN *trn, TrID trid)
|
||||
{
|
||||
TRN **found;
|
||||
LF_REQUIRE_PINS(3);
|
||||
|
||||
if (trid < trn->min_read_from)
|
||||
return 0; /* it's committed eons ago */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue