summaryrefslogtreecommitdiffstats
path: root/src/hooks/dhcp/mysql_cb/mysql_cb_impl.cc
diff options
context:
space:
mode:
authorMarcin Siodelski <marcin@isc.org>2019-01-21 14:30:53 +0100
committerMarcin Siodelski <marcin@isc.org>2019-01-30 10:18:59 +0100
commitdcc68c8f1ad1189e5502aa9fa505af3fa139a070 (patch)
treef6dbc769cbf20b2bb9aedb0b040750339a8fcc74 /src/hooks/dhcp/mysql_cb/mysql_cb_impl.cc
parent[#396,!205] Implemented audit for the option definitions. (diff)
downloadkea-dcc68c8f1ad1189e5502aa9fa505af3fa139a070.tar.xz
kea-dcc68c8f1ad1189e5502aa9fa505af3fa139a070.zip
[#396,!205] Implemented audit for options.
Diffstat (limited to 'src/hooks/dhcp/mysql_cb/mysql_cb_impl.cc')
-rw-r--r--src/hooks/dhcp/mysql_cb/mysql_cb_impl.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/hooks/dhcp/mysql_cb/mysql_cb_impl.cc b/src/hooks/dhcp/mysql_cb/mysql_cb_impl.cc
index 0087412aab..89bb93d26d 100644
--- a/src/hooks/dhcp/mysql_cb/mysql_cb_impl.cc
+++ b/src/hooks/dhcp/mysql_cb/mysql_cb_impl.cc
@@ -68,6 +68,17 @@ MySqlConfigBackendImpl::~MySqlConfigBackendImpl() {
}
void
+MySqlConfigBackendImpl::initAuditRevision(const int index,
+ const std::string& log_message,
+ const bool distinct_transaction) {
+ MySqlBindingCollection in_bindings = {
+ MySqlBinding::createString("this is a log message"),
+ MySqlBinding::createInteger<uint8_t>(static_cast<uint8_t>(distinct_transaction))
+ };
+ conn_.insertQuery(index, in_bindings);
+}
+
+void
MySqlConfigBackendImpl::getRecentAuditEntries(const int index,
const boost::posix_time::ptime& modification_time,
AuditEntryCollection& audit_entries) {