lmdb: fix build non-debug mode (MDB_DEBUG=0).

Change-Id: I362a6bd03c73dca70bc6df5f72badf59e560389a
This commit is contained in:
Leo Yuriev 2015-08-06 17:09:55 +03:00
parent 255fbfa303
commit 1171e4d73a

2
mdb.c
View File

@ -3062,9 +3062,7 @@ static void
mdb_txn_end(MDB_txn *txn, unsigned mode)
{
MDB_env *env = txn->mt_env;
#if MDB_DEBUG
static const char *const names[] = MDB_END_NAMES;
#endif
/* Export or close DBI handles opened in this txn */
mdb_dbis_update(txn, mode & MDB_END_UPDATE);