[Commits] 9e1c0ea3cdb: add assert by Marko

Oleksandr Byelkin sanja at mariadb.com
Wed Jan 16 14:51:56 EET 2019


revision-id: 9e1c0ea3cdbc3d9d69831bfd1e998bc373706acb (mariadb-5.5.62-19-g9e1c0ea3cdb)
parent(s): a6dec71637631c34cd2462989959fcbe4e30604c
author: Oleksandr Byelkin
committer: Oleksandr Byelkin
timestamp: 2019-01-16 13:51:56 +0100
message:

add assert by Marko

---
 sql/sql_table.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sql/sql_table.cc b/sql/sql_table.cc
index 3fb678e3d74..d3448c167c4 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -7844,6 +7844,7 @@ bool mysql_checksum_table(THD *thd, TABLE_LIST *tables,
       {
 	/* calculating table's checksum */
 	ha_checksum crc= 0;
+        DBUG_ASSERT(t->s->last_null_bit_pos < 8);
         uchar null_mask= (t->s->last_null_bit_pos ?
                           (256 -  (1 << t->s->last_null_bit_pos)):
                           0);


More information about the commits mailing list