Skip to content

Commit

Permalink
Remove dead code for non-debug builds
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-m committed Nov 6, 2017
1 parent 40bae98 commit f830314
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions storage/innobase/lock/lock0lock.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2351,6 +2351,7 @@ lock_rec_insert_by_trx_age(
return DB_SUCCESS;
}

#ifdef UNIV_DEBUG
static
bool
lock_queue_validate(
Expand Down Expand Up @@ -2384,6 +2385,7 @@ lock_queue_validate(
}
return true;
}
#endif /* UNIV_DEBUG */

/*********************************************************************//**
Enqueues a waiting request for a lock which cannot be granted immediately.
Expand Down
2 changes: 2 additions & 0 deletions storage/xtradb/lock/lock0lock.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2141,6 +2141,7 @@ lock_rec_insert_by_trx_age(
return DB_SUCCESS;
}

#ifdef UNIV_DEBUG
static
bool
lock_queue_validate(
Expand Down Expand Up @@ -2174,6 +2175,7 @@ lock_queue_validate(
}
return true;
}
#endif /* UNIV_DEBUG */

static
void
Expand Down

0 comments on commit f830314

Please sign in to comment.