Commit e09ca0e4 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 a1144245
...@@ -391,8 +391,8 @@ int toku_pmainternal_smooth_region (TOKULOGGER logger, FILENUM filenum, DISKOFF ...@@ -391,8 +391,8 @@ int toku_pmainternal_smooth_region (TOKULOGGER logger, FILENUM filenum, DISKOFF
} }
n_present++; // Save one for the blank guy. n_present++; // Save one for the blank guy.
{ {
//#define USE_MALLOC_IN_SMOOTH #define USE_MALLOC_IN_SMOOTH 1
#ifdef USE_MALLOC_IN_SMOOTH #if USE_MALLOC_IN_SMOOTH
struct kv_pair_tag *MALLOC_N(n_present, tmppairs); struct kv_pair_tag *MALLOC_N(n_present, tmppairs);
#else #else
struct kv_pair_tag tmppairs[n_present]; struct kv_pair_tag tmppairs[n_present];
...@@ -426,7 +426,7 @@ int toku_pmainternal_smooth_region (TOKULOGGER logger, FILENUM filenum, DISKOFF ...@@ -426,7 +426,7 @@ int toku_pmainternal_smooth_region (TOKULOGGER logger, FILENUM filenum, DISKOFF
*new_idx = newidx; *new_idx = newidx;
cleanup: cleanup:
#ifdef USE_MALLOC_IN_SMOOTH #if USE_MALLOC_IN_SMOOTH
toku_free(tmppairs); toku_free(tmppairs);
#endif #endif
return 0; 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