修复segment初始化异常问题
This commit is contained in:
parent
91894a6f96
commit
6a35eb1a9d
@ -25,7 +25,7 @@ func NewSegment(segmentCnt int, withLock bool) (EasyMap, error) {
|
||||
}
|
||||
em.dataTable = make([]EasyMap, segmentCnt)
|
||||
for i := 0; i < segmentCnt; i++ {
|
||||
em.dataTable[0] = NewNormal(withLock)
|
||||
em.dataTable[i] = NewNormal(withLock)
|
||||
}
|
||||
return em, nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user