Commit 7d6663e2 authored by Rich Prohaska's avatar Rich Prohaska

malloc temps in smooth region to fit within the mysql thread stack. close #441

git-svn-id: file:///svn/tokudb@2525 c7de825b-a66e-492c-adef-691d508d4ae1
parent 0b5e897d
......@@ -391,8 +391,8 @@ int toku_pmainternal_smooth_region (TOKULOGGER logger, FILENUM filenum, DISKOFF
}
n_present++; // Save one for the blank guy.
{
//#define USE_MALLOC_IN_SMOOTH
#ifdef USE_MALLOC_IN_SMOOTH
#define USE_MALLOC_IN_SMOOTH 1
#if USE_MALLOC_IN_SMOOTH
struct kv_pair_tag *MALLOC_N(n_present, tmppairs);
#else
struct kv_pair_tag tmppairs[n_present];
......@@ -426,7 +426,7 @@ int toku_pmainternal_smooth_region (TOKULOGGER logger, FILENUM filenum, DISKOFF
*new_idx = newidx;
cleanup:
#ifdef USE_MALLOC_IN_SMOOTH
#if USE_MALLOC_IN_SMOOTH
toku_free(tmppairs);
#endif
return 0;
......
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