Commit 6ef3dbb1 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

Fix unused variable warning in optimized build.

parent 1b58ef7d
......@@ -4535,13 +4535,13 @@ int ha_partition::update_row(const uchar *old_data, const uchar *new_data)
int ha_partition::delete_row(const uchar *buf)
{
int error;
THD *thd= ha_thd();
DBUG_ENTER("ha_partition::delete_row");
m_err_rec= NULL;
DBUG_ASSERT(bitmap_is_subset(&m_part_info->full_part_field_set,
table->read_set));
#ifndef DBUG_OFF
THD* thd = ha_thd();
/*
The protocol for deleting a row is:
1) position the handler (cursor) on the row to be deleted,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment