diff options
author | dlenev@jabberwock.localdomain <> | 2004-04-02 00:47:20 +0400 |
---|---|---|
committer | dlenev@jabberwock.localdomain <> | 2004-04-02 00:47:20 +0400 |
commit | a80f46bfdf6e84d04a9af5d27b6985299e1d225c (patch) | |
tree | dfc52e593ad673b6bc6c3758338f9b94e68f3daa /include | |
parent | ad7e09dec4a3d05170ca4e86a9c285f4d3fac05e (diff) | |
download | mariadb-git-a80f46bfdf6e84d04a9af5d27b6985299e1d225c.tar.gz |
WL#775 "Add status variable identifying binlog_cache_size shortage"
Added two status variables:
binlog_cache_use - counts number of transactions that used somehow
transaction temporary binary log.
binlog_cache_disk_use - counts number of transactions that required
disk I/O for storing info in this this binary log.
Diffstat (limited to 'include')
-rw-r--r-- | include/my_sys.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/my_sys.h b/include/my_sys.h index a97ddcce40d..8beaa00eb16 100644 --- a/include/my_sys.h +++ b/include/my_sys.h @@ -412,6 +412,11 @@ typedef struct st_io_cache /* Used when cacheing files */ IO_CACHE_CALLBACK pre_read; IO_CACHE_CALLBACK post_read; IO_CACHE_CALLBACK pre_close; + /* + Counts the number of times, when we were forced to use disk. We use it to + increase the binlog_cache_disk_use status variable. + */ + ulong disk_writes; void* arg; /* for use by pre/post_read */ char *file_name; /* if used with 'open_cached_file' */ char *dir,*prefix; |