src/share/database/scripts/mysql/dhcpdb_create.mysql
src/share/database/scripts/mysql/dhcpdb_drop.mysql
src/share/database/scripts/mysql/upgrade_5.2_to_6.0.sh.in
Added MySQL v4/6 stat tables and triggers
src/lib/dhcpsrv/memfile_lease_mgr.cc
Suppress output of of rows with count values of 0
src/lib/dhcpsrv/mysql_lease_mgr.*
Added v4/v6 lease stat SQL statements
MySqlLeaseStatsQuery
- Added ctor variants that accomodate selection criteria
- Modified start() to handle three variants of selection
MySqlLeaseMgr
- Added start***Query4/6 variants
src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc
Added tests:
- TEST_F(MySqlLeaseMgrTest, leaseStatsQuery4)
- TEST_F(MySqlLeaseMgrTest, leaseStatsQuery6)
new file:
src/share/database/scripts/mysql/upgrade_5.1_to_5.2.sh.in
renamed:
src/share/database/scripts/mysql/upgrade_5.1_to_6.0.sh.in
-> src/share/database/scripts/mysql/upgrade_5.2_to_6.0.sh.in
new file:
src/share/database/scripts/pgsql/upgrade_3.2_to_3.3.sh.in
renamed:
src/share/database/scripts/pgsql/upgrade_3.2_to_4.0.sh.in
-> src/share/database/scripts/pgsql/upgrade_3.3_to_4.0.sh.in
src/lib/dhcpsrv/pgsql_host_data_source.cc
changed OID_INT4 to OID_INT8 for subnet_id inputs in
TaggedStatements
src/lib/dhcpsrv/tests/generic_host_data_source_unittest.h
src/lib/dhcpsrv/tests/generic_host_data_source_unittest.cc
src/lib/dhcpsrv/tests/mysql_host_data_source_unittest.cc
src/lib/dhcpsrv/tests/pgsql_host_data_source_unittest.cc
Added new tests to verify maxium value for subnet_id works
src/share/database/scripts/mysql/dhcpdb_create.mysql
Added 5.1 to 5.2 changes
src/share/database/scripts/pgsql/dhcpdb_create.pgsql
Added 3.2 to 3.3 changes
The only review item not addressed with this commit is the
implementation of unit test that operates on the read only
database, i.e. the database containing tables on which the
given user only has SELECT privileges.