Skip to content

Commit cbd3004

Browse files
committed
[#3683] Addressed comments
1 parent a77e2f1 commit cbd3004

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/bin/admin/tests/mysql_tests.sh.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,7 @@ mysql_upgrade_27_to_28_test() {
10241024

10251025
mysql_upgrade_28_to_29_test() {
10261026

1027-
# check registered were added tp lease_state
1027+
# check registered was added tp lease_state
10281028
qry="SELECT name FROM lease_state WHERE state = 4"
10291029
run_command \
10301030
mysql_execute "${qry}"

src/bin/admin/tests/pgsql_tests.sh.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,7 @@ pgsql_upgrade_27_to_28_test() {
11151115

11161116
pgsql_upgrade_28_to_29_test() {
11171117

1118-
# check registered were added tp lease_state
1118+
# check registered was added tp lease_state
11191119
query="SELECT name FROM lease_state WHERE state = 4"
11201120
run_command \
11211121
pgsql_execute "${query}"

src/hooks/dhcp/lease_cmds/lease_parser.cc

+6-6
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,10 @@ Lease4Parser::parse(ConstSrvConfigPtr& cfg,
143143
}
144144

145145
// Check if the state value is sane.
146-
if (state > Lease::STATE_RELEASED) {
146+
if (state > Lease::STATE_REGISTERED) {
147147
isc_throw(BadValue, "Invalid state value: " << state << ", supported "
148-
"values are: 0 (default), 1 (declined), 2 (expired-reclaimed)"
149-
" and 3 (released)");
148+
"values are: 0 (default), 1 (declined), 2 (expired-reclaimed),"
149+
" 3 (released) and 4 (registered)");
150150
}
151151

152152
// Handle user context.
@@ -351,10 +351,10 @@ Lease6Parser::parse(ConstSrvConfigPtr& cfg,
351351
}
352352

353353
// Check if the state value is sane.
354-
if (state > Lease::STATE_RELEASED) {
354+
if (state > Lease::STATE_REGISTERED) {
355355
isc_throw(BadValue, "Invalid state value: " << state << ", supported "
356-
"values are: 0 (default), 1 (declined), 2 (expired-reclaimed)"
357-
" and 3 (released)");
356+
"values are: 0 (default), 1 (declined), 2 (expired-reclaimed),"
357+
" 3 (released) and 4 (registered)");
358358
}
359359

360360
if ((state == Lease::STATE_DECLINED) && (type == Lease::TYPE_PD)) {

0 commit comments

Comments
 (0)