File tree 4 files changed +11
-2
lines changed
4 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 28
28
(Thread/sleep 10000 ) ; wait for leader election and joining to a cluster
29
29
(when (= node (first (db/primaries test)))
30
30
(cl/with-conn-failure-retry conn
31
+ (j/execute! conn [(str " SET SESSION \" sql_default_engine\" = '" (:engine test) " '" )])
31
32
(j/execute! conn [(str " CREATE TABLE IF NOT EXISTS " table-name
32
33
" (id INT NOT NULL PRIMARY KEY,
33
34
count INT NOT NULL)" )]))
Original file line number Diff line number Diff line change 37
37
(Thread/sleep 10000 ) ; wait for leader election and joining to a cluster
38
38
(if (= node (first (db/primaries test)))
39
39
(cl/with-conn-failure-retry conn
40
+ (j/execute! conn [(str " SET SESSION \" sql_default_engine\" = '" (:engine test) " '" )])
40
41
(j/execute! conn [(str " CREATE TABLE IF NOT EXISTS " table-name
41
42
" (id INT NOT NULL PRIMARY KEY,
42
43
value INT NOT NULL)" )])
Original file line number Diff line number Diff line change 26
26
(def minimal-concurrency
27
27
10 )
28
28
29
+ (def engines
30
+ " Types of engines."
31
+ #{:memtx :vinyl })
32
+
29
33
(def workloads
30
34
" A map of workload names to functions that can take opts and construct
31
35
workloads.
96
100
:validate [#(and (number? %) (pos? %)) " must be a positive number" ]]
97
101
[" -e" " --engine NAME"
98
102
" What Tarantool data engine should we use?"
99
- :default " memtx" ]])
103
+ :parse-fn keyword
104
+ :validate [engines (cli/one-of engines)]
105
+ :default :memtx ]])
100
106
101
107
(def test-all-opts
102
108
" Command line options for testing everything."
178
184
:name (str " tarantool-" (:version opts))
179
185
:os ubuntu/os
180
186
:db (db/db (:version opts))
181
- :engine (:engine opts)
187
+ :engine (name ( :engine opts) )
182
188
:mvcc (:mvcc opts)
183
189
:pure-generators true
184
190
:concurrency (if (and (< (:concurrency opts) minimal-concurrency)
Original file line number Diff line number Diff line change 30
30
(Thread/sleep 10000 ) ; wait for leader election and joining to a cluster
31
31
(if (= node (first (db/primaries test)))
32
32
(cl/with-conn-failure-retry conn
33
+ (j/execute! conn [(str " SET SESSION \" sql_default_engine\" = '" (:engine test) " '" )])
33
34
(j/execute! conn [(str " CREATE TABLE IF NOT EXISTS " table-name
34
35
" (id INT NOT NULL PRIMARY KEY AUTOINCREMENT,
35
36
value INT NOT NULL)" )])
You can’t perform that action at this time.
0 commit comments