]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
fixed merge
authorRazvan Becheriu <razvan.becheriu@qualitance.com>
Tue, 6 Feb 2018 13:10:06 +0000 (15:10 +0200)
committerTomek Mrugalski <tomasz@isc.org>
Thu, 8 Feb 2018 08:33:21 +0000 (08:33 +0000)
src/lib/dhcpsrv/tests/cql_host_data_source_unittest.cc
src/share/database/scripts/cql/dhcpdb_create.cql

index bb551336160ee3ae687fe275e66f681d06df3bae..1882e9fae6660f846c7e9489cd7203f4358ac70f 100644 (file)
@@ -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.
index 2d6ab7d86f7de2dbf8310ad9ae028b8c04537d7b..7e3e79435049312dd94a47f0cbe296f6c0683ff1 100644 (file)
@@ -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