Skip to content

Commit 0282dd9

Browse files
authored
Merge pull request #2531 from alicebob/txntypes
fix KVOp types
2 parents a6bb339 + 92b2369 commit 0282dd9

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Diff for: api/kv.go

+11-11
Original file line numberDiff line numberDiff line change
@@ -50,21 +50,21 @@ type KVOp string
5050

5151
const (
5252
KVSet KVOp = "set"
53-
KVDelete = "delete"
54-
KVDeleteCAS = "delete-cas"
55-
KVDeleteTree = "delete-tree"
56-
KVCAS = "cas"
57-
KVLock = "lock"
58-
KVUnlock = "unlock"
59-
KVGet = "get"
60-
KVGetTree = "get-tree"
61-
KVCheckSession = "check-session"
62-
KVCheckIndex = "check-index"
53+
KVDelete KVOp = "delete"
54+
KVDeleteCAS KVOp = "delete-cas"
55+
KVDeleteTree KVOp = "delete-tree"
56+
KVCAS KVOp = "cas"
57+
KVLock KVOp = "lock"
58+
KVUnlock KVOp = "unlock"
59+
KVGet KVOp = "get"
60+
KVGetTree KVOp = "get-tree"
61+
KVCheckSession KVOp = "check-session"
62+
KVCheckIndex KVOp = "check-index"
6363
)
6464

6565
// KVTxnOp defines a single operation inside a transaction.
6666
type KVTxnOp struct {
67-
Verb string
67+
Verb KVOp
6868
Key string
6969
Value []byte
7070
Flags uint64

0 commit comments

Comments
 (0)