diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2020-03-25 15:09:53 +0100 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2020-03-25 15:53:38 +0100 |
commit | 6ef3dbb1ff9f5f4ad6821cdaa7a8259918525bc8 (patch) | |
tree | e3051ab1dc0dafd62439a74642784578b1590d9f /sql/ha_partition.cc | |
parent | 1b58ef7d3f9d9913437f7a53d11ba7b03ea91cf7 (diff) | |
download | mariadb-git-6ef3dbb1ff9f5f4ad6821cdaa7a8259918525bc8.tar.gz |
Fix unused variable warning in optimized build.
Diffstat (limited to 'sql/ha_partition.cc')
-rw-r--r-- | sql/ha_partition.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/ha_partition.cc b/sql/ha_partition.cc index cd2f0d4a36a..d35689ec733 100644 --- a/sql/ha_partition.cc +++ b/sql/ha_partition.cc @@ -4535,13 +4535,13 @@ exit: 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, |