修复segment初始化异常问题

This commit is contained in:
白茶清欢 2021-04-09 15:52:58 +08:00
parent 91894a6f96
commit 6a35eb1a9d

View File

@ -25,7 +25,7 @@ func NewSegment(segmentCnt int, withLock bool) (EasyMap, error) {
} }
em.dataTable = make([]EasyMap, segmentCnt) em.dataTable = make([]EasyMap, segmentCnt)
for i := 0; i < segmentCnt; i++ { for i := 0; i < segmentCnt; i++ {
em.dataTable[0] = NewNormal(withLock) em.dataTable[i] = NewNormal(withLock)
} }
return em, nil return em, nil
} }