637
626
BUFFPEK *file_ptr= (BUFFPEK*) file_ptrs.buffer;
638
627
uint32_t maxbuffer= file_ptrs.elements - 1;
639
628
unsigned char *sort_buffer;
643
632
/* Open cached file if it isn't open */
647
636
if (!outfile || (! my_b_inited(outfile) && open_cached_file(outfile,drizzle_tmpdir,TEMP_PREFIX,READ_RECORD_BUFFER, MYF(MY_WME))))
649
reinit_io_cache(outfile, internal::WRITE_CACHE, 0L, 0, 0);
638
reinit_io_cache(outfile, WRITE_CACHE, 0L, 0, 0);
651
640
memset(&sort_param, 0, sizeof(sort_param));
652
641
sort_param.max_rows= elements;