Skip to content

Commit f830314

Browse files
committed
Remove dead code for non-debug builds
1 parent 40bae98 commit f830314

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

storage/innobase/lock/lock0lock.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2351,6 +2351,7 @@ lock_rec_insert_by_trx_age(
23512351
return DB_SUCCESS;
23522352
}
23532353

2354+
#ifdef UNIV_DEBUG
23542355
static
23552356
bool
23562357
lock_queue_validate(
@@ -2384,6 +2385,7 @@ lock_queue_validate(
23842385
}
23852386
return true;
23862387
}
2388+
#endif /* UNIV_DEBUG */
23872389

23882390
/*********************************************************************//**
23892391
Enqueues a waiting request for a lock which cannot be granted immediately.

storage/xtradb/lock/lock0lock.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2141,6 +2141,7 @@ lock_rec_insert_by_trx_age(
21412141
return DB_SUCCESS;
21422142
}
21432143

2144+
#ifdef UNIV_DEBUG
21442145
static
21452146
bool
21462147
lock_queue_validate(
@@ -2174,6 +2175,7 @@ lock_queue_validate(
21742175
}
21752176
return true;
21762177
}
2178+
#endif /* UNIV_DEBUG */
21772179

21782180
static
21792181
void

0 commit comments

Comments
 (0)