From 813becf5bba5a4e0eb0d4268b506a3d19a73c2a3 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 18 Jan 2006 15:02:03 +0300 Subject: Applied patch recieved from Marko: Make innodb_flush_log_at_trx_commit a settable global variable. innobase/include/srv0srv.h: Change the type of srv_flush_log_at_trx_commit. innobase/srv/srv0srv.c: Change the type of srv_flush_log_at_trx_commit. sql/ha_innodb.cc: Remove innobase_flush_log_at_trx_commit. (Set srv_flush_log_at_trx_commit directly). sql/ha_innodb.h: Remove innobase_flush_log_at_trx_commit. (Set srv_flush_log_at_trx_commit directly). sql/mysqld.cc: Bypass the variable innobase innobase_flush_log_at_trx_commit. sql/set_var.cc: Make innodb_flush_log_at_trx_commit a settable global variable. --- innobase/include/srv0srv.h | 2 +- innobase/srv/srv0srv.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'innobase') diff --git a/innobase/include/srv0srv.h b/innobase/include/srv0srv.h index 99ea4f2de27..23c9ef1e221 100644 --- a/innobase/include/srv0srv.h +++ b/innobase/include/srv0srv.h @@ -77,7 +77,7 @@ extern ulint srv_n_log_groups; extern ulint srv_n_log_files; extern ulint srv_log_file_size; extern ulint srv_log_buffer_size; -extern ulint srv_flush_log_at_trx_commit; +extern ulong srv_flush_log_at_trx_commit; extern byte srv_latin1_ordering[256];/* The sort order table of the latin1 character set */ diff --git a/innobase/srv/srv0srv.c b/innobase/srv/srv0srv.c index 6e0b9b23266..694345c4142 100644 --- a/innobase/srv/srv0srv.c +++ b/innobase/srv/srv0srv.c @@ -113,7 +113,7 @@ ulint srv_n_log_groups = ULINT_MAX; ulint srv_n_log_files = ULINT_MAX; ulint srv_log_file_size = ULINT_MAX; /* size in database pages */ ulint srv_log_buffer_size = ULINT_MAX; /* size in database pages */ -ulint srv_flush_log_at_trx_commit = 1; +ulong srv_flush_log_at_trx_commit = 1; byte srv_latin1_ordering[256] /* The sort order table of the latin1 character set. The following table is -- cgit v1.2.1