diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2017-11-06 22:35:03 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2017-11-06 22:35:03 +0200 |
commit | f830314fd5023b5d631d522fc3e263b650d5ccbc (patch) | |
tree | 86cd768506b0f54f92fb71129276eff8b8829d7f | |
parent | 40bae98c3d8b1a13d7499dbd518aab03f2921d6e (diff) | |
download | mariadb-git-f830314fd5023b5d631d522fc3e263b650d5ccbc.tar.gz |
Remove dead code for non-debug builds
-rw-r--r-- | storage/innobase/lock/lock0lock.cc | 2 | ||||
-rw-r--r-- | storage/xtradb/lock/lock0lock.cc | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/storage/innobase/lock/lock0lock.cc b/storage/innobase/lock/lock0lock.cc index 47f48df27c5..6b2c309e432 100644 --- a/storage/innobase/lock/lock0lock.cc +++ b/storage/innobase/lock/lock0lock.cc @@ -2351,6 +2351,7 @@ lock_rec_insert_by_trx_age( return DB_SUCCESS; } +#ifdef UNIV_DEBUG static bool lock_queue_validate( @@ -2384,6 +2385,7 @@ lock_queue_validate( } return true; } +#endif /* UNIV_DEBUG */ /*********************************************************************//** Enqueues a waiting request for a lock which cannot be granted immediately. diff --git a/storage/xtradb/lock/lock0lock.cc b/storage/xtradb/lock/lock0lock.cc index 8759cea9e6d..ddaeff69f10 100644 --- a/storage/xtradb/lock/lock0lock.cc +++ b/storage/xtradb/lock/lock0lock.cc @@ -2141,6 +2141,7 @@ lock_rec_insert_by_trx_age( return DB_SUCCESS; } +#ifdef UNIV_DEBUG static bool lock_queue_validate( @@ -2174,6 +2175,7 @@ lock_queue_validate( } return true; } +#endif /* UNIV_DEBUG */ static void |