diff options
author | monty@mysql.com <> | 2006-03-29 14:27:36 +0300 |
---|---|---|
committer | monty@mysql.com <> | 2006-03-29 14:27:36 +0300 |
commit | 1994ed49ecf09b9de26167a850915ef3de2a4ce6 (patch) | |
tree | 4d8a2c78f1c611f41d2ea762390198c528239c80 /sql/log.h | |
parent | 8cb3cf2382e9c8a3afb5d03ec4199e1ac4528bde (diff) | |
download | mariadb-git-1994ed49ecf09b9de26167a850915ef3de2a4ce6.tar.gz |
Fixed compiler and valgrind warnings
Added missing DBUG_xxx_RETURN statements
Fixed some usage of not initialized variables (as found by valgrind)
Ensure that we don't remove locked tables used as name locks from open table cache until unlock_table_names() are called.
This was fixed by having drop_locked_name() returning any table used as a name lock so that we can free it in unlock_table_names()
This will allow Tomas to continue with his work to use namelocks to syncronize things.
Note: valgrind still produces a lot of warnings about using not initialized code and shows memory loss errors when running the ndb tests
Diffstat (limited to 'sql/log.h')
-rw-r--r-- | sql/log.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/log.h b/sql/log.h index 391ef54dff7..03d5466e549 100644 --- a/sql/log.h +++ b/sql/log.h @@ -40,7 +40,8 @@ class TC_LOG class TC_LOG_DUMMY: public TC_LOG // use it to disable the logging { - public: +public: + TC_LOG_DUMMY() {} int open(const char *opt_name) { return 0; } void close() { } int log(THD *thd, my_xid xid) { return 1; } @@ -354,6 +355,7 @@ public: class Log_event_handler { public: + Log_event_handler() {} virtual bool init()= 0; virtual void cleanup()= 0; |