File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -7867,6 +7867,19 @@ bool Field_varstring::send(Protocol *protocol)
7867
7867
7868
7868
7869
7869
#ifdef HAVE_MEM_CHECK
7870
+
7871
+ /*
7872
+ Mark the unused part of the varstring as defined.
7873
+
7874
+ This function is only used be Unique when calculating statistics.
7875
+
7876
+ The marking is needed as we write the whole tree to disk in case of
7877
+ overflows. For using or comparing values the undefined value part
7878
+ is never used. We could also use bzero() here, but it would be
7879
+ slower in production environments.
7880
+ This function is tested by main.stat_tables-enospc
7881
+ */
7882
+
7870
7883
void Field_varstring::mark_unused_memory_as_defined ()
7871
7884
{
7872
7885
uint used_length __attribute__ ((unused)) = get_length ();
You can’t perform that action at this time.
0 commit comments