diff options
author | Georgi Kodinov <Georgi.Kodinov@Oracle.com> | 2010-06-04 17:10:22 +0300 |
---|---|---|
committer | Georgi Kodinov <Georgi.Kodinov@Oracle.com> | 2010-06-04 17:10:22 +0300 |
commit | ac738d8265b665dc90be0a7977468096ee463c78 (patch) | |
tree | e36c07742e17423e4748490721378b3ed78f54cf /sql/sql_class.h | |
parent | 517f586762a5c775f46668fedfa10c3c802e7f18 (diff) | |
parent | 121e04732ea3b5edf36335f827cc5bcb08fb7665 (diff) | |
download | mariadb-git-ac738d8265b665dc90be0a7977468096ee463c78.tar.gz |
merge
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r-- | sql/sql_class.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h index bd3cf8bc401..19a433746e4 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -2029,6 +2029,11 @@ public: start_time= user_time= t; start_utime= utime_after_lock= my_micro_time(); } + /*TODO: this will be obsolete when we have support for 64 bit my_time_t */ + inline bool is_valid_time() + { + return (start_time < (time_t) MY_TIME_T_MAX); + } void set_time_after_lock() { utime_after_lock= my_micro_time(); } ulonglong current_utime() { return my_micro_time(); } inline ulonglong found_rows(void) |