cleanup: remove LF_REQUIRE_PINS, use compile_time_assert() instead of reimplementing it

This commit is contained in:
Sergei Golubchik 2013-06-24 20:56:55 +02:00
commit 639baee61b
6 changed files with 5 additions and 30 deletions

View file

@ -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;

View file

@ -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 */