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
_check.c
_rectest.c
ChangeLog
heapdef.h
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
hp_close.c
hp_create.c
hp_delete.c
hp_extra.c
hp_hash.c
hp_info.c
hp_open.c
hp_panic.c
hp_rename.c
hp_rfirst.c
hp_rkey.c
hp_rlast.c
hp_rnext.c
hp_rprev.c
hp_rrnd.c
hp_rsame.c
hp_scan.c
hp_static.c
hp_test1.c
hp_test2.c
hp_update.c
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
Makefile.am