1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

Fix unused variable 'thd' error.

This commit is contained in:
Sergey Petrunya
2011-12-15 17:26:32 +04:00
parent b1e037da6a
commit 876f16afbb

View File

@@ -2561,8 +2561,8 @@ int ha_maria::extra_opt(enum ha_extra_function operation, ulong cache_size)
int ha_maria::delete_all_rows()
{
THD *thd= table->in_use;
#ifdef EXTRA_DEBUG
THD *thd= table->in_use;
TRN *trn= file->trn;
if (trn && ! (trnman_get_flags(trn) & TRN_STATE_INFO_LOGGED))
{