summaryrefslogtreecommitdiff
path: root/src/base/stats/events.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/stats/events.hh')
-rw-r--r--src/base/stats/events.hh8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/base/stats/events.hh b/src/base/stats/events.hh
index dc1408f5b..8ba9cece5 100644
--- a/src/base/stats/events.hh
+++ b/src/base/stats/events.hh
@@ -42,7 +42,8 @@ extern Tick EventStart;
#if USE_MYSQL
void __event(const std::string &stat);
-bool MySqlConnected();
+#else
+inline void __event(const std::string &stat) {}
#endif
inline void
@@ -53,12 +54,7 @@ recordEvent(const std::string &stat)
DPRINTF(StatEvents, "Statistics Event: %s\n", stat);
-#if USE_MYSQL
- if (!MySqlConnected())
- return;
-
__event(stat);
-#endif
}
/* namespace Stats */ }