From 4545b8f798546f54ac5e1184a8fbbfd67d96b049 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Tue, 17 Nov 2020 10:08:15 +0200 Subject: [PATCH] Fix division by zero If the query failed instantly it would crash the test. --- system-test/mxs1926_killed_server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system-test/mxs1926_killed_server.cpp b/system-test/mxs1926_killed_server.cpp index a17b8a6a8..0710c2fc5 100644 --- a/system-test/mxs1926_killed_server.cpp +++ b/system-test/mxs1926_killed_server.cpp @@ -54,7 +54,7 @@ void tune_rowcount(TestConnections& test) remove(filename.c_str()); int orig = ROWCOUNT; - ROWCOUNT = orig / dur.count() * 10000; + ROWCOUNT = orig / (dur.count() + 1) * 10000; test.tprintf("Loading %d rows took %ld ms, setting row count to %d", orig, dur.count(),