mariadb/heap
kroki/tomash@moonlight.home 5b4d9d8706 BUG#23443: user-defined variables can consume too much memory in the
server

The problem was that when memory was exhausted HEAP engine could crash
(GROUP BY uses HEAP TABLE).  Alternatively, if SET was used, it could
report an error "You may only use constant expressions with SET" instead
of "Out of memory (Needed NNNNNN bytes)".

The solution is:
 - pass MY_WME to (some) calls to my_malloc() to get correct message.
 - fix heap_write() so that the first key is skipped during cleanup
   on ENOMEM because it wasn't inserted and doesn't have to be
   deleted.

No test case is provided because we can't test out-of-memory behaviour
in our current test framework.
2007-01-09 12:24:25 +03:00
..
.cvsignore Import changeset 2000-07-31 21:29:14 +02:00
_check.c New multi-table-update code 2002-11-29 16:40:18 +02:00
_rectest.c Update copyright 2001-12-06 14:10:51 +02:00
ChangeLog Import changeset 2000-07-31 21:29:14 +02:00
heapdef.h Merge with 3.23.54 2002-10-16 13:11:25 +03:00
hp_block.c BUG#23443: user-defined variables can consume too much memory in the 2007-01-09 12:24:25 +03:00
hp_clear.c Update copyright 2001-12-06 14:10:51 +02:00
hp_close.c Update copyright 2001-12-06 14:10:51 +02:00
hp_create.c Update copyright 2001-12-06 14:10:51 +02:00
hp_delete.c New multi-table-update code 2002-11-29 16:40:18 +02:00
hp_extra.c Update copyright 2001-12-06 14:10:51 +02:00
hp_hash.c Added support of null keys in HEAP tables 2002-01-12 15:42:54 +02:00
hp_info.c Fix for BUG#2477 "Slave stop with error after master reboot if use HEAP tables": 2004-01-30 00:05:34 +01:00
hp_open.c A fix (bug #6878: Crash with engine=memory). 2004-12-02 14:34:53 +04:00
hp_panic.c Update copyright 2001-12-06 14:10:51 +02:00
hp_rename.c Update copyright 2001-12-06 14:10:51 +02:00
hp_rfirst.c Fixed mysqldumpslow for new dump format. 2002-03-12 11:52:41 +02:00
hp_rkey.c Add support for NULL=NULL in keys (Used in GROUP BY optimization) 2002-01-16 00:42:52 +02:00
hp_rlast.c Update copyright 2001-12-06 14:10:51 +02:00
hp_rnext.c better fix for a bug fix from yesterday 2002-03-07 13:57:52 +02:00
hp_rprev.c Update copyright 2001-12-06 14:10:51 +02:00
hp_rrnd.c Update copyright 2001-12-06 14:10:51 +02:00
hp_rsame.c Update copyright 2001-12-06 14:10:51 +02:00
hp_scan.c New multi-table-update code 2002-11-29 16:40:18 +02:00
hp_static.c Update copyright 2001-12-06 14:10:51 +02:00
hp_test1.c Update copyright 2001-12-06 14:10:51 +02:00
hp_test2.c - fixed several typos ("uppdate"->"update" and "tryed"->"tried") 2003-09-19 18:34:57 +02:00
hp_update.c New multi-table-update code 2002-11-29 16:40:18 +02:00
hp_write.c BUG#23443: user-defined variables can consume too much memory in the 2007-01-09 12:24:25 +03:00
make-ccc Import changeset 2000-07-31 21:29:14 +02:00
Makefile.am - Applied required modifications for automake 1.5 2002-10-01 21:57:10 +02:00