From 7ec8a14c5ee4cd13afc2cdbcaf65abfd157d2d09 Mon Sep 17 00:00:00 2001 From: pfriedenbach Date: Wed, 3 Feb 2016 12:18:36 -0800 Subject: [PATCH] Update common.lua Add control defaults for oltp_delete_inserts and oltp_range_selects. --- sysbench/tests/db/common.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sysbench/tests/db/common.lua b/sysbench/tests/db/common.lua index 6aabecd..6cfc62e 100644 --- a/sysbench/tests/db/common.lua +++ b/sysbench/tests/db/common.lua @@ -132,7 +132,14 @@ function set_vars() oltp_distinct_ranges = oltp_distinct_ranges or 1 oltp_index_updates = oltp_index_updates or 1 oltp_non_index_updates = oltp_non_index_updates or 1 + oltp_delete_inserts = oltp_delete_inserts or 1 + if (oltp_range_selets = 'off') then + oltp_range_selects = false + else + oltp_range_selects = true + end + if (oltp_auto_inc == 'off') then oltp_auto_inc = false else