summaryrefslogtreecommitdiff
path: root/sql/log.h
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2011-07-10 20:21:18 +0200
committerSergei Golubchik <sergii@pisem.net>2011-07-10 20:21:18 +0200
commite44fefc7b395279b9682321f952490ab9d1d01f0 (patch)
tree620b90cde4a5c1e05c8225eea14363d737b15c48 /sql/log.h
parent49501b4ccb923475f259cccf66b90e8c6a5ed0ee (diff)
downloadmariadb-git-e44fefc7b395279b9682321f952490ab9d1d01f0.tar.gz
adding DBUG_ENTER/DBUG_RETURN tags that were useful when fixing memory leaks
Diffstat (limited to 'sql/log.h')
-rw-r--r--sql/log.h20
1 files changed, 13 insertions, 7 deletions
diff --git a/sql/log.h b/sql/log.h
index 402c90034c7..6da45c5f44c 100644
--- a/sql/log.h
+++ b/sql/log.h
@@ -158,14 +158,20 @@ typedef struct st_log_info
my_off_t pos;
bool fatal; // if the purge happens to give us a negative offset
mysql_mutex_t lock;
- st_log_info()
- : index_file_offset(0), index_file_start_offset(0),
+ st_log_info() : index_file_offset(0), index_file_start_offset(0),
pos(0), fatal(0)
- {
- log_file_name[0] = '\0';
- mysql_mutex_init(key_LOG_INFO_lock, &lock, MY_MUTEX_INIT_FAST);
- }
- ~st_log_info() { mysql_mutex_destroy(&lock);}
+ {
+ DBUG_ENTER("LOG_INFO");
+ log_file_name[0] = '\0';
+ mysql_mutex_init(key_LOG_INFO_lock, &lock, MY_MUTEX_INIT_FAST);
+ DBUG_VOID_RETURN;
+ }
+ ~st_log_info()
+ {
+ DBUG_ENTER("~LOG_INFO");
+ mysql_mutex_destroy(&lock);
+ DBUG_VOID_RETURN;
+ }
} LOG_INFO;
/*