diff options
author | unknown <guilhem@mysql.com> | 2004-03-26 19:11:37 +0100 |
---|---|---|
committer | unknown <guilhem@mysql.com> | 2004-03-26 19:11:37 +0100 |
commit | 11bea84e431101c03ed0f0ccdc57815dd1359d77 (patch) | |
tree | 7c9553152622276a50ec1602cf9cb54bc42aa1be /sql/sql_class.h | |
parent | 1450ee3a670801b1e718bdfe55f5159dea055828 (diff) | |
download | mariadb-git-11bea84e431101c03ed0f0ccdc57815dd1359d77.tar.gz |
To save 32KB memory per thread when --log-bin is not used, we do not
init the binlog_cache (THD::transaction.trans_log).
I have checked all places where trans_log is used, because as now
it may not be inited in some cases, we have to be cautious
(will forward this commit mail to Heikki).
sql/handler.cc:
Do not use the transaction binlog cache if binlog is not open
sql/sql_class.cc:
We do not init the transaction binlog cache if binlog is not open.
This saves 32 KB memory per thread, if --log-bin is not used.
sql/sql_class.h:
warning comment
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r-- | sql/sql_class.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h index 51039999345..6815d0ae43c 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -684,7 +684,7 @@ public: delayed_insert *di; my_bool tablespace_op; /* This is TRUE in DISCARD/IMPORT TABLESPACE */ struct st_transactions { - IO_CACHE trans_log; + IO_CACHE trans_log; // Inited ONLY if binlog is open ! THD_TRANS all; // Trans since BEGIN WORK THD_TRANS stmt; // Trans for current statement uint bdb_lock_count; |