Browse Source

data race

master
Unknwon 4 years ago
parent
commit
66031fcb37
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      memory.go

+ 3
- 0
memory.go View File

@@ -176,6 +176,9 @@ func (p *MemProvider) Regenerate(oldsid, sid string) (RawStore, error) {
}
s.(*MemStore).sid = sid
p.lock.Lock()
defer p.lock.Unlock()
p.data[sid] = p.list.PushBack(s)
return s, nil
}


Loading…
Cancel
Save