Skip to content

Commit 4f935d2

Browse files
committed
[#2957] Addressed review comments
Minor corrections, added ChangeLog and fixed db-version UT.
1 parent f04c101 commit 4f935d2

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2221. [bug] tmark
2+
Corrected an index on the dhcp4_servers table
3+
in the PostgreSQL schema.
4+
(Gitlab #2957)
5+
16
2220. [bug] marcin
27
Exclude packets ignored during load balancing from the
38
pkt6-receive-drop statistics. The packets dropped by the

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ pgsql_db_version_test() {
142142
run_command \
143143
"${kea_admin}" db-version pgsql -u "${db_user}" -p "${db_password}" -n "${db_name}"
144144
version="${OUTPUT}"
145-
assert_str_eq "20.0" "${version}" "Expected kea-admin to return %s, returned value was %s"
145+
assert_str_eq "21.0" "${version}" "Expected kea-admin to return %s, returned value was %s"
146146

147147
# Let's wipe the whole database
148148
pgsql_wipe
@@ -888,7 +888,7 @@ pgsql_upgrade_18_to_19_test() {
888888
}
889889

890890
pgsql_upgrade_19_to_20_test() {
891-
# Verify that lease6_by_sunet_id_address index on lease6 is keyed by
891+
# Verify that lease6_by_subnet_id_address index on lease6 is keyed by
892892
# attributes number 5 and 1 (i.e. subnet-id and address)
893893
qry="select ix.indkey as keys from pg_class t, pg_class i, pg_index ix \
894894
where t.oid = ix.indrelid and i.oid = ix.indexrelid and \

src/share/database/scripts/pgsql/dhcpdb_create.pgsql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6327,7 +6327,7 @@ UPDATE schema_version
63276327

63286328
-- This line starts the schema upgrade to version 21.0.
63296329

6330-
-- Correct dhcp4_server_modifcation_ts to index the dhcp4_server table.
6330+
-- Correct dhcp4_server_modification_ts to index the dhcp4_server table.
63316331
DROP INDEX dhcp4_server_modification_ts;
63326332
CREATE INDEX dhcp4_server_modification_ts ON dhcp4_server (modification_ts);
63336333

src/share/database/scripts/pgsql/upgrade_020_to_021.sh.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ START TRANSACTION;
3939
4040
-- This line starts the schema upgrade to version 21.0.
4141
42-
-- Correct dhcp4_server_modifcation_ts to index the dhcp4_server table.
42+
-- Correct dhcp4_server_modification_ts to index the dhcp4_server table.
4343
DROP INDEX dhcp4_server_modification_ts;
4444
CREATE INDEX dhcp4_server_modification_ts ON dhcp4_server (modification_ts);
4545

0 commit comments

Comments
 (0)