summaryrefslogtreecommitdiff
path: root/storage/innobase/handler/ha_innodb.h
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2017-03-23 11:48:56 +0000
committerVladislav Vaintroub <wlad@mariadb.com>2017-03-23 11:50:22 +0000
commite5b67a46bcb75a751f5906f19694971bc803d67c (patch)
treeeedc485ef1f5dec061c315b6ffe54a76e496f003 /storage/innobase/handler/ha_innodb.h
parent09a2107b1b2f5567b8a50afec9e54a33284c6233 (diff)
downloadmariadb-git-e5b67a46bcb75a751f5906f19694971bc803d67c.tar.gz
MDEV-12345 Performance : replace calls to clock() inside trx_start_low() by THD::start_utime
Diffstat (limited to 'storage/innobase/handler/ha_innodb.h')
-rw-r--r--storage/innobase/handler/ha_innodb.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/storage/innobase/handler/ha_innodb.h b/storage/innobase/handler/ha_innodb.h
index 478187e0b23..90dfb6102b3 100644
--- a/storage/innobase/handler/ha_innodb.h
+++ b/storage/innobase/handler/ha_innodb.h
@@ -421,6 +421,15 @@ int thd_slave_thread(const MYSQL_THD thd);
int thd_non_transactional_update(const MYSQL_THD thd);
/**
+ Get high resolution timestamp for the current query start time.
+ The timestamp is not anchored to any specific point in time,
+ but can be used for comparison.
+
+ @retval timestamp in microseconds precision
+*/
+unsigned long long thd_start_utime(const MYSQL_THD thd);
+
+/**
Get the user thread's binary logging format
@param thd user thread
@return Value to be used as index into the binlog_format_names array