Skip to content

Commit dc34595

Browse files
authored
Support READ-COMMITTED isolation (#147)
1 parent d37e719 commit dc34595

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

scalardb/src/scalardb/db_extend.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
[test properties]
2424
(doto properties
2525
(.setProperty "scalar.db.consensus_commit.isolation_level"
26-
(-> test :isolation-level name string/upper-case))
26+
(-> test :isolation-level name string/upper-case (string/replace #"-" "_")))
2727
(.setProperty "scalar.db.consensus_commit.coordinator.group_commit.enabled"
2828
(str (:enable-group-commit test)))
2929
(.setProperty "scalar.db.consensus_commit.coordinator.group_commit.slot_capacity" "4")

scalardb/src/scalardb/runner.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@
115115
[nil "--isolation-level ISOLATION_LEVEL" "isolation level"
116116
:default :snapshot
117117
:parse-fn keyword
118-
:validate [#{:snapshot :serializable}
119-
"Should be one of snapshot or serializable"]]
118+
:validate [#{:read-committed :snapshot :serializable}
119+
"Should be one of read-committed, snapshot, or serializable"]]
120120

121121
(cli/repeated-opt nil "--consistency-model CONSISTENCY_MODEL"
122122
"consistency model to be checked"

0 commit comments

Comments
 (0)