summaryrefslogtreecommitdiff
path: root/sql/hostname.cc
diff options
context:
space:
mode:
authorunknown <timour@askmonty.org>2013-07-03 12:19:03 +0300
committerunknown <timour@askmonty.org>2013-07-03 12:19:03 +0300
commit5f0d489da8771d8ddcc440ecc811a190a421e486 (patch)
tree22a4af06c737f39720e59d9bfac2388656163f9b /sql/hostname.cc
parentecbf36a914b696b01ae1497567025e239f4ea693 (diff)
downloadmariadb-git-5f0d489da8771d8ddcc440ecc811a190a421e486.tar.gz
MDEV-4058
MySQL 5.6.10 performance schema: merge of the test files for the host_cache table
Diffstat (limited to 'sql/hostname.cc')
-rw-r--r--sql/hostname.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/hostname.cc b/sql/hostname.cc
index 1cd00d39a91..cca5b185e38 100644
--- a/sql/hostname.cc
+++ b/sql/hostname.cc
@@ -282,7 +282,7 @@ static void add_hostname(const char *ip_key, const char *hostname,
if (specialflag & SPECIAL_NO_HOST_CACHE)
return;
- ulonglong now= my_time();
+ ulonglong now= my_hrtime().val;
mysql_mutex_lock(&hostname_cache->lock);
@@ -298,7 +298,7 @@ void inc_host_errors(const char *ip_string, Host_errors *errors)
if (!ip_string)
return;
- ulonglong now= my_time();
+ ulonglong now= my_hrtime().val;
char ip_key[HOST_ENTRY_KEY_SIZE];
prepare_hostname_cache_key(ip_string, ip_key);
@@ -448,7 +448,7 @@ int ip_to_hostname(struct sockaddr_storage *ip_storage,
if (!(specialflag & SPECIAL_NO_HOST_CACHE))
{
- ulonglong now= my_time();
+ ulonglong now= my_hrtime().val;
mysql_mutex_lock(&hostname_cache->lock);