Skip to content

Commit

Permalink
Fixed condition for colocated DB
Browse files Browse the repository at this point in the history
  • Loading branch information
qvad committed Sep 20, 2023
1 parent fce0743 commit 0847dfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yugabyte/src/yugabyte/auto.clj
Original file line number Diff line number Diff line change
Expand Up @@ -524,8 +524,8 @@
"Executed once on a first node in list (i.e. n1 by default) after per-node setup is done"
(let [colocated (and (not (utils/is-test-geo-partitioned? test)) (> (rand) 0.5))
colocated-clause (if colocated
""
" WITH colocated = true")]
" WITH colocated = true"
"")]
(info "Creating JEPSEN" (if colocated "colocated" "") "database")
(ysqlsh test :-h (cn/ip node) :-c (str "CREATE DATABASE jepsen" colocated-clause ";")))
)
Expand Down

0 comments on commit 0847dfb

Please sign in to comment.