diff options
author | unknown <knielsen@knielsen-hq.org> | 2012-09-13 14:31:29 +0200 |
---|---|---|
committer | unknown <knielsen@knielsen-hq.org> | 2012-09-13 14:31:29 +0200 |
commit | 288eeb3a31e4bfb52180f3906a4d354ac9cc457e (patch) | |
tree | 57555aba1d6f3bcdf97f180298d1c97dddbc58b5 /sql/mysqld.h | |
parent | 0697ee265fa4fe4d617dc96194fcf2532fd73402 (diff) | |
download | mariadb-git-288eeb3a31e4bfb52180f3906a4d354ac9cc457e.tar.gz |
MDEV-232: Remove one fsync() from commit phase.
Introduce a new storage engine API method commit_checkpoint_request().
This is used to replace the fsync() at the end of every storage engine
commit with a single fsync() when a binlog is rotated.
Binlog rotation is now done during group commit instead of being
delayed until unlog(), removing some server stall and avoiding an
expensive lock/unlock of LOCK_log inside unlog().
Diffstat (limited to 'sql/mysqld.h')
-rw-r--r-- | sql/mysqld.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/mysqld.h b/sql/mysqld.h index 28c4d771a48..62d2426d692 100644 --- a/sql/mysqld.h +++ b/sql/mysqld.h @@ -218,7 +218,7 @@ extern pthread_key(MEM_ROOT**,THR_MALLOC); #ifdef HAVE_PSI_INTERFACE #ifdef HAVE_MMAP extern PSI_mutex_key key_PAGE_lock, key_LOCK_sync, key_LOCK_active, - key_LOCK_pool; + key_LOCK_pool, key_LOCK_pending_checkpoint; #endif /* HAVE_MMAP */ #ifdef HAVE_OPENSSL |