~stewart/haildb/embedded-innodb-1.0.6.6750-branch-point

  • Committer: marko
  • Date: 2010-02-24 08:56:43 UTC
  • Revision ID: svn-v4:16c675df-0fcb-4bc9-8058-dcc011a37293:branches/zip:6754
branches/zip: Allocate the merge sort buffers from a heap, not stack.

The merge sort can use up to 48KiB of buffers when merging blocks.
That can cause a stack overflow, especially on 64-bit systems when not
building with inlined functions.  This was reported as Issue #462.

row_merge_dup_report(): Allocate buf and offsets from a heap.

row_merge_heap_create(): Allocate space for buf[3] too. Fix bogus
sizeof arithmetics that happened to work, because
sizeof(ulint)==sizeof(void*).

row_merge_blocks(), row_merge_blocks_copy(): Allocate buf[3] from heap.

row_merge_insert_index_tuples(): Allocate buf from graph_heap.

rb://258 approved and tested by Sunny Bains
Filename Latest Rev Last Changed Committer Comment Size
..
btr 1851 14 years ago marko branches/zip: Add */.dirstamp to svn:ignore, for h Diff
buf 1851 14 years ago marko branches/zip: Add */.dirstamp to svn:ignore, for h Diff
data 1851 14 years ago marko branches/zip: Add */.dirstamp to svn:ignore, for h Diff
dict 1851 14 years ago marko branches/zip: Add */.dirstamp to svn:ignore, for h Diff
dyn 1851 14 years ago marko branches/zip: Add */.dirstamp to svn:ignore, for h Diff
eval 255 17 years ago marko branches/zip: Merge revisions 869:887 from trunk. Diff
fil 1851 14 years ago marko branches/zip: Add */.dirstamp to svn:ignore, for h Diff
fsp 1851 14 years ago marko branches/zip: Add */.dirstamp to svn:ignore, for h Diff
fut 255 17 years ago marko branches/zip: Merge revisions 869:887 from trunk. Diff
ha 1851 14 years ago marko branches/zip: Add */.dirstamp to svn:ignore, for h Diff
handler 255 17 years ago marko branches/zip: Merge revisions 869:887 from trunk. Diff
ibuf 1851 14 years ago marko branches/zip: Add */.dirstamp to svn:ignore, for h Diff
include 2 18 years ago osku Import 5.0 code. Diff
lock 255 17 years ago marko branches/zip: Merge revisions 869:887 from trunk. Diff
log 1851 14 years ago marko branches/zip: Add */.dirstamp to svn:ignore, for h Diff
mach 1851 14 years ago marko branches/zip: Add */.dirstamp to svn:ignore, for h Diff
mem 1851 14 years ago marko branches/zip: Add */.dirstamp to svn:ignore, for h Diff
mtr 1851 14 years ago marko branches/zip: Add */.dirstamp to svn:ignore, for h Diff
mysql-test 2 18 years ago osku Import 5.0 code. Diff
os 1851 14 years ago marko branches/zip: Add */.dirstamp to svn:ignore, for h Diff
page 1851 14 years ago marko branches/zip: Add */.dirstamp to svn:ignore, for h Diff
pars 255 17 years ago marko branches/zip: Merge revisions 869:887 from trunk. Diff
que 255 17 years ago marko branches/zip: Merge revisions 869:887 from trunk. Diff
read 255 17 years ago marko branches/zip: Merge revisions 869:887 from trunk. Diff
rem 1851 14 years ago marko branches/zip: Add */.dirstamp to svn:ignore, for h Diff
row 1851 14 years ago marko branches/zip: Add */.dirstamp to svn:ignore, for h Diff
scripts 894 16 years ago sunny branches/zip: Add plugin build scripts, move expor Diff
srv 1851 14 years ago marko branches/zip: Add */.dirstamp to svn:ignore, for h Diff
sync 255 17 years ago marko branches/zip: Merge revisions 869:887 from trunk. Diff
thr 255 17 years ago marko branches/zip: Merge revisions 869:887 from trunk. Diff
trx 1851 14 years ago marko branches/zip: Add */.dirstamp to svn:ignore, for h Diff
usr 255 17 years ago marko branches/zip: Merge revisions 869:887 from trunk. Diff
ut 1851 14 years ago marko branches/zip: Add */.dirstamp to svn:ignore, for h Diff
ChangeLog 2013 14 years ago inaam branches/zip ChangeLog entry for r6674. 51.5 KB Diff Download File
CMakeLists.txt 1938 14 years ago calvin branches/zip: merge the fix of bug#48317 (CMake fi 4 KB Diff Download File
File compile-innodb 1499 15 years ago vasil branches/zip: Add the copyright notice to the non 905 bytes Diff Download File
File compile-innodb-debug 1499 15 years ago vasil branches/zip: Add the copyright notice to the non 926 bytes Diff Download File
COPYING 1468 15 years ago vasil branches/zip: Add the full text of the GPLv2 lice 18.6 KB Diff Download File
COPYING.Google 1512 15 years ago vasil branches/zip: Add a sentence at the top of COPYIN 1.6 KB Diff Download File
COPYING.Percona 1742 14 years ago calvin branches/zip: add COPYING files for Percona and Su 1.6 KB Diff Download File
COPYING.Sun_Microsystems 1742 14 years ago calvin branches/zip: add COPYING files for Percona and Su 1.6 KB Diff Download File
Doxyfile 1677 14 years ago marko branches/zip: buf0buf.h, Doxyfile: Fix the Doxygen 57.5 KB Diff Download File
ha_innodb.def 1326 15 years ago marko branches/zip: ChangeLog, ha_innodb.def: Set svn:eo 104 bytes Diff Download File
Makefile.am 1953 14 years ago marko branches/zip: Revert changes that were accidentall 8.3 KB Diff Download File
plug.in 1953 14 years ago marko branches/zip: Revert changes that were accidentall 5.5 KB Diff Download File
File revert_gen.sh 1068 16 years ago marko branches/zip: Update CMakeLists.txt to correspond 215 bytes Diff Download File
File setup.sh 1529 15 years ago vasil branches/zip: Apply any necessary patches to the 1.6 KB Diff Download File