diff options
Diffstat (limited to 'sql/rpl_utility.cc')
-rw-r--r-- | sql/rpl_utility.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/rpl_utility.cc b/sql/rpl_utility.cc index 279575f33ce..40937e98b27 100644 --- a/sql/rpl_utility.cc +++ b/sql/rpl_utility.cc @@ -97,7 +97,7 @@ uint32 table_def::calc_field_size(uint col, uchar *master_data) { uint from_len= (m_field_metadata[col] >> 8U) & 0x00ff; uint from_bit_len= m_field_metadata[col] & 0x00ff; - DBUG_ASSERT(from_len >= 0 && from_bit_len >= 0 && from_bit_len <= 7); + DBUG_ASSERT(from_bit_len >= 0 && from_bit_len <= 7); length= from_len + ((from_bit_len > 0) ? 1 : 0); break; } @@ -121,7 +121,6 @@ uint32 table_def::calc_field_size(uint col, uchar *master_data) default: length= -1; } - DBUG_ASSERT(length >= 0); return length; } |