summaryrefslogtreecommitdiff
path: root/storage/blackhole
diff options
context:
space:
mode:
authorMikael Ronstrom <mikael@mysql.com>2008-12-20 12:33:00 +0100
committerMikael Ronstrom <mikael@mysql.com>2008-12-20 12:33:00 +0100
commitda743b3f657be72eca33983e5db3302f85b5155a (patch)
tree1d3168970d652f2ec9b7f6b798812c074f670004 /storage/blackhole
parent131768915b15ac899ed64f48098b2b826f98cdf2 (diff)
downloadmariadb-git-da743b3f657be72eca33983e5db3302f85b5155a.tar.gz
Fixed missing declaration
Diffstat (limited to 'storage/blackhole')
-rw-r--r--storage/blackhole/ha_blackhole.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/storage/blackhole/ha_blackhole.cc b/storage/blackhole/ha_blackhole.cc
index 305e36f18df..be747e2d1de 100644
--- a/storage/blackhole/ha_blackhole.cc
+++ b/storage/blackhole/ha_blackhole.cc
@@ -256,6 +256,7 @@ int ha_blackhole::index_read_last_map(uchar * buf, const uchar * key,
int rc;
DBUG_ENTER("ha_blackhole::index_read_last");
MYSQL_INDEX_READ_ROW_START(table_share->db.str, table_share->table_name.str);
+ THD *thd= ha_thd();
if (thd->system_thread == SYSTEM_THREAD_SLAVE_SQL && thd->query == NULL)
rc= 0;
else