2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 14:05:33 +00:00

[#2869] Implemented wipeExtendedInfoTables6

This commit is contained in:
Francis Dupont
2023-05-25 01:38:11 +02:00
parent 592e913a26
commit 5415988d92
9 changed files with 71 additions and 0 deletions

View File

@@ -4270,5 +4270,24 @@ MySqlLeaseMgr::buildExtendedInfoTables6(bool /* update */, bool /* current */) {
"MySqlLeaseMgr::buildExtendedInfoTables6 not implemented");
}
void
MySqlLeaseMgr::wipeExtendedInfoTables6() {
// Get a context
MySqlLeaseContextAlloc get_context(*this);
MySqlLeaseContextPtr ctx = get_context.ctx_;
StatementIndex stindex = WIPE_RELAY_ID6;
int status = MysqlExecuteStatement(ctx->conn_.statements_[stindex]);
if (status != 0) {
checkError(ctx, status, stindex, "unable to execute");
}
stindex = WIPE_REMOTE_ID6;
status = MysqlExecuteStatement(ctx->conn_.statements_[stindex]);
if (status != 0) {
checkError(ctx, status, stindex, "unable to execute");
}
}
} // namespace dhcp
} // namespace isc