summaryrefslogtreecommitdiff
path: root/sql/sql_truncate.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2019-05-11 16:56:41 +0200
committerSergei Golubchik <serg@mariadb.org>2019-05-18 20:34:03 +0200
commit8feb78ef53d254539caa0ede374acf2d4db13d2b (patch)
tree9009f201959c35f60e420b44eb6a408227b68502 /sql/sql_truncate.cc
parentd199591cf2aad9b056a13fe03d63031971155adb (diff)
downloadmariadb-git-8feb78ef53d254539caa0ede374acf2d4db13d2b.tar.gz
cleanup: replace a magic constant with a define
Diffstat (limited to 'sql/sql_truncate.cc')
-rw-r--r--sql/sql_truncate.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_truncate.cc b/sql/sql_truncate.cc
index c0dee66c317..c89ca92bcb1 100644
--- a/sql/sql_truncate.cc
+++ b/sql/sql_truncate.cc
@@ -319,7 +319,7 @@ bool Sql_cmd_truncate_table::lock_table(THD *thd, TABLE_LIST *table_ref,
TABLE_SHARE *share= tdc_acquire_share(thd, table_ref, GTS_TABLE | GTS_VIEW);
if (share == NULL)
DBUG_RETURN(TRUE);
- DBUG_ASSERT(share != (TABLE_SHARE*)1);
+ DBUG_ASSERT(share != UNUSABLE_TABLE_SHARE);
versioned= share->versioned;
sequence= share->table_type == TABLE_TYPE_SEQUENCE;