2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 05:27:55 +00:00

[#2131] Addressed comment

This commit is contained in:
Francis Dupont 2021-11-10 13:23:32 +01:00
parent 4135f1cf74
commit f79a09a60f
4 changed files with 10 additions and 20 deletions

View File

@ -175,12 +175,11 @@ NameAddTransaction::addingFwdAddrsHandler() {
// Clear the update attempts count on initial transition.
clearUpdateAttempts();
}
// No reuse of the request on retries.
clearDnsUpdateRequest();
switch(getNextEvent()) {
case SERVER_SELECTED_EVT:
try {
clearDnsUpdateRequest();
buildAddFwdAddressRequest();
} catch (const std::exception& ex) {
// While unlikely, the build might fail if we have invalid
@ -288,13 +287,12 @@ NameAddTransaction::replacingFwdAddrsHandler() {
// Clear the update attempts count on initial transition.
clearUpdateAttempts();
}
// No reuse of the request on retries.
clearDnsUpdateRequest();
switch(getNextEvent()) {
case FQDN_IN_USE_EVT:
case SERVER_SELECTED_EVT:
try {
clearDnsUpdateRequest();
buildReplaceFwdAddressRequest();
} catch (const std::exception& ex) {
// While unlikely, the build might fail if we have invalid
@ -438,12 +436,11 @@ NameAddTransaction::replacingRevPtrsHandler() {
// Clear the update attempts count on initial transition.
clearUpdateAttempts();
}
// No reuse of the request on retries.
clearDnsUpdateRequest();
switch(getNextEvent()) {
case SERVER_SELECTED_EVT:
try {
clearDnsUpdateRequest();
buildReplaceRevPtrsRequest();
} catch (const std::exception& ex) {
// While unlikely, the build might fail if we have invalid

View File

@ -179,12 +179,11 @@ NameRemoveTransaction::removingFwdAddrsHandler() {
// Clear the update attempts count on initial transition.
clearUpdateAttempts();
}
// No reuse of the request on retries.
clearDnsUpdateRequest();
switch(getNextEvent()) {
case SERVER_SELECTED_EVT:
try {
clearDnsUpdateRequest();
buildRemoveFwdAddressRequest();
} catch (const std::exception& ex) {
// While unlikely, the build might fail if we have invalid
@ -287,13 +286,12 @@ NameRemoveTransaction::removingFwdRRsHandler() {
// Clear the update attempts count on initial transition.
clearUpdateAttempts();
}
// No reuse of the request on retries.
clearDnsUpdateRequest();
switch(getNextEvent()) {
case UPDATE_OK_EVT:
case SERVER_SELECTED_EVT:
try {
clearDnsUpdateRequest();
buildRemoveFwdRRsRequest();
} catch (const std::exception& ex) {
// While unlikely, the build might fail if we have invalid
@ -445,12 +443,11 @@ NameRemoveTransaction::removingRevPtrsHandler() {
// Clear the update attempts count on initial transition.
clearUpdateAttempts();
}
// No reuse of the request on retries.
clearDnsUpdateRequest();
switch(getNextEvent()) {
case SERVER_SELECTED_EVT:
try {
clearDnsUpdateRequest();
buildRemoveRevPtrsRequest();
} catch (const std::exception& ex) {
// While unlikely, the build might fail if we have invalid

View File

@ -170,12 +170,11 @@ SimpleAddTransaction::replacingFwdAddrsHandler() {
// Clear the update attempts count on initial transition.
clearUpdateAttempts();
}
// No reuse of the request on retries.
clearDnsUpdateRequest();
switch(getNextEvent()) {
case SERVER_SELECTED_EVT:
try {
clearDnsUpdateRequest();
buildReplaceFwdAddressRequest();
} catch (const std::exception& ex) {
// While unlikely, the build might fail if we have invalid
@ -307,12 +306,11 @@ SimpleAddTransaction::replacingRevPtrsHandler() {
// Clear the update attempts count on initial transition.
clearUpdateAttempts();
}
// No reuse of the request on retries.
clearDnsUpdateRequest();
switch(getNextEvent()) {
case SERVER_SELECTED_EVT:
try {
clearDnsUpdateRequest();
buildReplaceRevPtrsRequest();
} catch (const std::exception& ex) {
// While unlikely, the build might fail if we have invalid

View File

@ -173,13 +173,12 @@ SimpleRemoveTransaction::removingFwdRRsHandler() {
// Clear the update attempts count on initial transition.
clearUpdateAttempts();
}
// No reuse of the request on retries.
clearDnsUpdateRequest();
switch(getNextEvent()) {
case UPDATE_OK_EVT:
case SERVER_SELECTED_EVT:
try {
clearDnsUpdateRequest();
buildRemoveFwdRRsRequest();
} catch (const std::exception& ex) {
// While unlikely, the build might fail if we have invalid
@ -320,12 +319,11 @@ SimpleRemoveTransaction::removingRevPtrsHandler() {
// Clear the update attempts count on initial transition.
clearUpdateAttempts();
}
// No reuse of the request on retries.
clearDnsUpdateRequest();
switch(getNextEvent()) {
case SERVER_SELECTED_EVT:
try {
clearDnsUpdateRequest();
buildRemoveRevPtrsRequest();
} catch (const std::exception& ex) {
// While unlikely, the build might fail if we have invalid