summaryrefslogtreecommitdiff
path: root/sql/log_event.h
diff options
context:
space:
mode:
authorunknown <monty@mysql.com/narttu.mysql.fi>2007-08-14 15:36:39 +0300
committerunknown <monty@mysql.com/narttu.mysql.fi>2007-08-14 15:36:39 +0300
commitc492a2392e283b6448cac2b3813b5a8b3906df93 (patch)
tree48f0764e80b4e644b2803342ed39392dc43cf64c /sql/log_event.h
parent9d779efebca4c17d355f035f7b1f67ba31bb72f5 (diff)
downloadmariadb-git-c492a2392e283b6448cac2b3813b5a8b3906df93.tar.gz
Move function to be visible in embedded server
Diffstat (limited to 'sql/log_event.h')
-rw-r--r--sql/log_event.h24
1 files changed, 11 insertions, 13 deletions
diff --git a/sql/log_event.h b/sql/log_event.h
index bce41c0f912..33f94f7ab22 100644
--- a/sql/log_event.h
+++ b/sql/log_event.h
@@ -774,6 +774,17 @@ public:
{ return 0; }
virtual bool write_data_body(IO_CACHE* file __attribute__((unused)))
{ return 0; }
+ inline ulong get_time()
+ {
+ THD *tmp_thd;
+ if (when)
+ return (ulong) when;
+ if (thd)
+ return thd->start_time;
+ if ((tmp_thd= current_thd))
+ return tmp_thd->start_time;
+ return my_time(0);
+ }
#endif
virtual Log_event_type get_type_code() = 0;
virtual bool is_valid() const = 0;
@@ -925,19 +936,6 @@ protected:
non-zero. The caller shall decrease the counter by one.
*/
virtual enum_skip_reason do_shall_skip(RELAY_LOG_INFO *rli);
-
- inline ulong get_time()
- {
- THD *tmp_thd;
- if (when)
- return (ulong) when;
- if (thd)
- return thd->start_time;
- if ((tmp_thd= current_thd))
- return tmp_thd->start_time;
- return my_time(0);
- }
-
#endif
};