From: Razvan Becheriu Date: Tue, 6 Feb 2018 13:10:06 +0000 (+0200) Subject: fixed merge X-Git-Tag: trac5502_base~5^2~7^2~6 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=1c5274dcb8720278271fe6451786dcd90b06974c;p=thirdparty%2Fkea.git fixed merge --- diff --git a/src/lib/dhcpsrv/tests/cql_host_data_source_unittest.cc b/src/lib/dhcpsrv/tests/cql_host_data_source_unittest.cc index bb55133616..1882e9fae6 100644 --- a/src/lib/dhcpsrv/tests/cql_host_data_source_unittest.cc +++ b/src/lib/dhcpsrv/tests/cql_host_data_source_unittest.cc @@ -511,6 +511,16 @@ TEST_F(CqlHostDataSourceTest, testAddRollback) { DbOperationError); } +TEST_F(CqlHostDataSourceTest, DISABLED_stressTest) { + // Run with 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4092, 8192, + // 16384 & 32768 hosts. + for (unsigned int i = 0X0001U; i < 0xfffdU; i <<= 1) { + initializeTest(); + stressTest(i); + destroyTest(); + } +} + // This test checks that siaddr, sname, file fields can be retrieved /// from a database for a host. /// @todo: Uncomment this after 5507 is implemented. diff --git a/src/share/database/scripts/cql/dhcpdb_create.cql b/src/share/database/scripts/cql/dhcpdb_create.cql index 2d6ab7d86f..7e3e794350 100644 --- a/src/share/database/scripts/cql/dhcpdb_create.cql +++ b/src/share/database/scripts/cql/dhcpdb_create.cql @@ -226,7 +226,7 @@ CREATE INDEX IF NOT EXISTS host_reservationsindex5 ON host_reservations (host_ip CREATE INDEX IF NOT EXISTS host_reservationsindex6 ON host_reservations (reserved_ipv6_prefix_address); CREATE INDEX IF NOT EXISTS host_reservationsindex7 ON host_reservations (reserved_ipv6_prefix_length); -TRUNCATE SCHEMA_VERSION; +DELETE FROM schema_version WHERE version=1; INSERT INTO schema_version (version, minor) VALUES(2, 0); -- This line concludes database upgrade to version 2.0