Skip to content

Commit

Permalink
merge commit 02b00b154
Browse files Browse the repository at this point in the history
Author: Marc Alff <marc.alff@oracle.com>
Date:   Thu Jul 30 11:17:50 2015 +0200

    Bug#21528683 SLOWDOWN CAUSED BY MEMSET IN SQL_DIGEST_STORAGE.RESET()
  • Loading branch information
vuvova committed Oct 24, 2015
1 parent 84da154 commit 6a28882
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions sql/sql_digest.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ struct sql_digest_storage
For Example:
SELECT * FROM T1;
&lt;SELECT_TOKEN&gt; &lt;*&gt; &lt;FROM_TOKEN&gt; &lt;ID_TOKEN&gt; &lt;2&gt; &lt;T1&gt;
@note Only the first @c m_byte_count bytes are initialized,
out of @c m_token_array_length.
*/
unsigned char *m_token_array;
/* Length of the token array to be considered for DIGEST_TEXT calculation. */
Expand All @@ -63,10 +66,6 @@ struct sql_digest_storage
m_full= false;
m_byte_count= 0;
m_charset_number= 0;
if (m_token_array_length > 0)
{
memset(m_token_array, 0, m_token_array_length);
}
memset(m_md5, 0, MD5_HASH_SIZE);
}

Expand Down

0 comments on commit 6a28882

Please sign in to comment.