Commit 6d8e0d52 authored by Kirill Smelkov's avatar Kirill Smelkov

go/zodb: Fix TxnStatus constants type

Previously TxnComplete was typed, but TxnPacked and TxnInprogress were
untyped constants. Make all constants have TxnStatus type.
parent e1b05139
...@@ -150,9 +150,9 @@ type DataInfo struct { ...@@ -150,9 +150,9 @@ type DataInfo struct {
type TxnStatus byte type TxnStatus byte
const ( const (
TxnComplete TxnStatus = ' ' // completed transaction that hasn't been packed TxnComplete TxnStatus = ' ' // completed transaction that hasn't been packed
TxnPacked = 'p' // completed transaction that has been packed TxnPacked TxnStatus = 'p' // completed transaction that has been packed
TxnInprogress = 'c' // checkpoint -- a transaction in progress; it's been thru vote() but not finish() TxnInprogress TxnStatus = 'c' // checkpoint -- a transaction in progress; it's been thru vote() but not finish()
) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment