rename TXID to SIGNID
This commit is contained in:
parent
d13a1e4292
commit
79e49306ef
@ -27,8 +27,8 @@ type typeInfo struct {
|
|||||||
|
|
||||||
var table string = "t_uid" // id range table name
|
var table string = "t_uid" // id range table name
|
||||||
var typeSupported = map[string]typeInfo{
|
var typeSupported = map[string]typeInfo{
|
||||||
"TXID": typeInfo{
|
"SIGNID": typeInfo{
|
||||||
Name: "TXID",
|
Name: "SIGNID",
|
||||||
RangeLength: 3,
|
RangeLength: 3,
|
||||||
},
|
},
|
||||||
"USERID": typeInfo{
|
"USERID": typeInfo{
|
||||||
@ -76,6 +76,7 @@ func CreateIdRange(db *gorm.DB, typ, prefix string) (start int64, length int, er
|
|||||||
}
|
}
|
||||||
selfid = "TODO"
|
selfid = "TODO"
|
||||||
)
|
)
|
||||||
|
log.Infof("start CreateIdRange...")
|
||||||
|
|
||||||
// Step 2. get lastid && lock root(type+prefix)
|
// Step 2. get lastid && lock root(type+prefix)
|
||||||
var tx = db.Begin()
|
var tx = db.Begin()
|
||||||
|
Loading…
Reference in New Issue
Block a user