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:
@@ -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
|
||||
|
Reference in New Issue
Block a user