[patch 106/129] Merge patch for revision 1915 from InnoDB SVN:
revno: 1915
revision-id: svn-v4:16c675df-0fcb-4bc9-8058-dcc011a37293:branches/zip:6130
parent: svn-v4:16c675df-0fcb-4bc9-8058-dcc011a37293:branches/zip:6126
committer: marko
timestamp: Mon 2009-11-02 09:42:56 +0000
message:
branches/zip: Free all resources at shutdown. Set pointers to NULL, so
that Valgrind will not complain about freed data structures that are
reachable via pointers. This addresses Bug #45992 and Bug #46656.
This patch is mostly based on changes copied from branches/embedded-1.0,
mainly c5432, c3439, c3134, c2994, c2978, but also some other code was
copied. Some added cleanup code is specific to MySQL/InnoDB.
rb://199 approved by Sunny Bains
modified:
ChangeLog 2425@16c675df-0fcb-4bc9-8058-dcc011a37293:branches%2Fzip%2FChangeLog
btr/btr0sea.c 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Fbtr%2Fbtr0sea.c
buf/buf0buf.c 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Fbuf%2Fbuf0buf.c
dict/dict0dict.c 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Fdict%2Fdict0dict.c
fil/fil0fil.c 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Ffil%2Ffil0fil.c
ibuf/ibuf0ibuf.c 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Fibuf%2Fibuf0ibuf.c
include/btr0sea.h 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Finclude%2Fbtr0sea.h
include/dict0dict.h 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Finclude%2Fdict0dict.h
include/fil0fil.h 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Finclude%2Ffil0fil.h
include/ibuf0ibuf.h 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Finclude%2Fibuf0ibuf.h
include/lock0lock.h 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Finclude%2Flock0lock.h
include/log0log.h 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Finclude%2Flog0log.h
include/log0recv.h 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Finclude%2Flog0recv.h
include/mem0mem.h 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Finclude%2Fmem0mem.h
include/mem0pool.h 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Finclude%2Fmem0pool.h
include/os0file.h 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Finclude%2Fos0file.h
include/pars0pars.h 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Finclude%2Fpars0pars.h
include/srv0srv.h 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Finclude%2Fsrv0srv.h
include/thr0loc.h 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Finclude%2Fthr0loc.h
include/trx0i_s.h 1864@16c675df-0fcb-4bc9-8058-dcc011a37293:branches%2Fzip%2Finclude%2Ftrx0i_s.h
include/trx0purge.h 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Finclude%2Ftrx0purge.h
include/trx0rseg.h 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Finclude%2Ftrx0rseg.h
include/trx0sys.h 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Finclude%2Ftrx0sys.h
include/trx0undo.h 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Finclude%2Ftrx0undo.h
include/usr0sess.h 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Finclude%2Fusr0sess.h
lock/lock0lock.c 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Flock%2Flock0lock.c
log/log0log.c 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Flog%2Flog0log.c
log/log0recv.c 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Flog%2Flog0recv.c
mem/mem0dbg.c 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Fmem%2Fmem0dbg.c
mem/mem0pool.c 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Fmem%2Fmem0pool.c
os/os0file.c 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Fos%2Fos0file.c
os/os0sync.c 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Fos%2Fos0sync.c
os/os0thread.c 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Fos%2Fos0thread.c
pars/lexyy.c 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Fpars%2Flexyy.c
pars/pars0lex.l 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Fpars%2Fpars0lex.l
que/que0que.c 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Fque%2Fque0que.c
srv/srv0srv.c 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Fsrv%2Fsrv0srv.c
srv/srv0start.c 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Fsrv%2Fsrv0start.c
sync/sync0arr.c 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Fsync%2Fsync0arr.c
sync/sync0sync.c 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Fsync%2Fsync0sync.c
thr/thr0loc.c 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Fthr%2Fthr0loc.c
trx/trx0i_s.c 1864@16c675df-0fcb-4bc9-8058-dcc011a37293:branches%2Fzip%2Ftrx%2Ftrx0i_s.c
trx/trx0purge.c 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Ftrx%2Ftrx0purge.c
trx/trx0rseg.c 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Ftrx%2Ftrx0rseg.c
trx/trx0sys.c 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Ftrx%2Ftrx0sys.c
trx/trx0undo.c 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Ftrx%2Ftrx0undo.c
usr/usr0sess.c 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Fusr%2Fusr0sess.c
ut/ut0mem.c 2@16c675df-0fcb-4bc9-8058-dcc011a37293:trunk%2Fut%2Fut0mem.c
diff:
=== modified file 'ChangeLog'
..
|
math
|
642.1.30
|
16 years ago |
Lee |
move math functions to drizzled/function/math dire |
|
|
|
str
|
574.3.2
|
16 years ago |
Lee |
initial changes to break out item_strfunc into fun |
|
|
|
time
|
574.3.12
|
16 years ago |
Lee |
initial work for moving functions from item_timefu |
|
|
|
additive_op.cc |
1280.1.10
|
15 years ago |
Monty Taylor |
Put everything in drizzled into drizzled namespace |
1.7 KB |
|
|
additive_op.h |
1280.1.10
|
15 years ago |
Monty Taylor |
Put everything in drizzled into drizzled namespace |
1.2 KB |
|
|
field.cc |
1280.1.10
|
15 years ago |
Monty Taylor |
Put everything in drizzled into drizzled namespace |
2.5 KB |
|
|
field.h |
1280.1.10
|
15 years ago |
Monty Taylor |
Put everything in drizzled into drizzled namespace |
1.3 KB |
|
|
find_in_set.cc |
1280.1.10
|
15 years ago |
Monty Taylor |
Put everything in drizzled into drizzled namespace |
3.1 KB |
|
|
find_in_set.h |
1280.1.10
|
15 years ago |
Monty Taylor |
Put everything in drizzled into drizzled namespace |
1.4 KB |
|
|
found_rows.cc |
1633.4.7
|
14 years ago |
Brian Aker |
Put a copy of the Session in the root of function |
1 KB |
|
|
found_rows.h |
1280.1.10
|
15 years ago |
Monty Taylor |
Put everything in drizzled into drizzled namespace |
1.3 KB |
|
|
func.cc |
1717.1.2
|
14 years ago |
LinuxJedi |
Set string functions to use DERIVATION_SYSCONST. |
16.9 KB |
|
|
func.h |
1717.1.2
|
14 years ago |
LinuxJedi |
Set string functions to use DERIVATION_SYSCONST. |
7.4 KB |
|
|
get_system_var.cc |
1643.6.13
|
14 years ago |
Djellel E. Difallah |
adding tests |
2.6 KB |
|
|
get_system_var.h |
1273.14.5
|
15 years ago |
Monty Taylor |
Merged trunk.
|
1.9 KB |
|
|
get_user_var.cc |
1633.4.5
|
14 years ago |
Brian Aker |
More current_session.
|
3.9 KB |
|
|
get_user_var.h |
1633.4.3
|
14 years ago |
Brian Aker |
Remove session usage.
|
2 KB |
|
|
last_insert.cc |
1633.4.7
|
14 years ago |
Brian Aker |
Put a copy of the Session in the root of function |
1.7 KB |
|
|
last_insert.h |
1280.1.10
|
15 years ago |
Monty Taylor |
Put everything in drizzled into drizzled namespace |
1.4 KB |
|
|
locate.cc |
1816.3.1
|
14 years ago |
Brian Aker |
Convert sql_string to use size_t (this should clea |
2.5 KB |
|
|
locate.h |
1280.1.10
|
15 years ago |
Monty Taylor |
Put everything in drizzled into drizzled namespace |
1.4 KB |
|
|
min_max.cc |
1633.4.7
|
14 years ago |
Brian Aker |
Put a copy of the Session in the root of function |
6.5 KB |
|
|
min_max.h |
1280.1.10
|
15 years ago |
Monty Taylor |
Put everything in drizzled into drizzled namespace |
2.2 KB |
|
|
num1.cc |
1280.1.10
|
15 years ago |
Monty Taylor |
Put everything in drizzled into drizzled namespace |
1.5 KB |
|
|
num1.h |
1759.3.1
|
14 years ago |
Stewart Smith |
move ABS() function into math_functions plugin. We |
1.4 KB |
|
|
num_op.cc |
1280.1.10
|
15 years ago |
Monty Taylor |
Put everything in drizzled into drizzled namespace |
1.6 KB |
|
|
num_op.h |
1280.1.10
|
15 years ago |
Monty Taylor |
Put everything in drizzled into drizzled namespace |
1.4 KB |
|
|
numhybrid.cc |
1280.1.10
|
15 years ago |
Monty Taylor |
Put everything in drizzled into drizzled namespace |
4.2 KB |
|
|
numhybrid.h |
1759.3.1
|
14 years ago |
Stewart Smith |
move ABS() function into math_functions plugin. We |
2.7 KB |
|
|
rollup_const.h |
1280.1.10
|
15 years ago |
Monty Taylor |
Put everything in drizzled into drizzled namespace |
1.9 KB |
|
|
row_count.cc |
1280.1.10
|
15 years ago |
Monty Taylor |
Put everything in drizzled into drizzled namespace |
1 KB |
|
|
row_count.h |
1280.1.10
|
15 years ago |
Monty Taylor |
Put everything in drizzled into drizzled namespace |
1.2 KB |
|
|
set_user_var.cc |
1660.1.3
|
14 years ago |
Brian Aker |
Encapsulate Table in field
|
12.6 KB |
|
|
set_user_var.h |
1280.1.10
|
15 years ago |
Monty Taylor |
Put everything in drizzled into drizzled namespace |
2.7 KB |
|
|
sign.cc |
1280.1.10
|
15 years ago |
Monty Taylor |
Put everything in drizzled into drizzled namespace |
1.1 KB |
|
|
sign.h |
1280.1.10
|
15 years ago |
Monty Taylor |
Put everything in drizzled into drizzled namespace |
1.2 KB |
|
|
units.cc |
1280.1.10
|
15 years ago |
Monty Taylor |
Put everything in drizzled into drizzled namespace |
1.1 KB |
|
|
units.h |
1280.1.10
|
15 years ago |
Monty Taylor |
Put everything in drizzled into drizzled namespace |
1.4 KB |
|
|
user_var_as_out_param.cc |
1280.1.10
|
15 years ago |
Monty Taylor |
Put everything in drizzled into drizzled namespace |
2.4 KB |
|
|
user_var_as_out_param.h |
1280.1.10
|
15 years ago |
Monty Taylor |
Put everything in drizzled into drizzled namespace |
2.1 KB |
|
|