Commit fc4c53c2 authored by Karthik Kamath's avatar Karthik Kamath

BUG#24807826: UINT3KORR SHOULD STOP READING FOUR INSTEAD OF

              THREE BYTES ON X86

Post push fix for resolving main.archive test failure in valgrind.
parent 2531c8dc
...@@ -596,7 +596,7 @@ static int init_rr_cache(THD *thd, READ_RECORD *info) ...@@ -596,7 +596,7 @@ static int init_rr_cache(THD *thd, READ_RECORD *info)
DBUG_RETURN(1); DBUG_RETURN(1);
#ifdef HAVE_purify #ifdef HAVE_purify
// Avoid warnings in qsort // Avoid warnings in qsort
bzero(info->cache,rec_cache_size+info->cache_records* info->struct_length+1); bzero(info->cache,rec_cache_size+info->cache_records* info->struct_length);
#endif #endif
DBUG_PRINT("info",("Allocated buffert for %d records",info->cache_records)); DBUG_PRINT("info",("Allocated buffert for %d records",info->cache_records));
info->read_positions=info->cache+rec_cache_size; info->read_positions=info->cache+rec_cache_size;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment