mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-21 12:16:44 +00:00
Put bug fixed
This commit is contained in:
parent
abeebb0e2d
commit
da493362ba
1 changed files with 7 additions and 0 deletions
|
|
@ -193,6 +193,13 @@ func (s *memStore) Put(entry *Chunk) {
|
|||
|
||||
if node.entry.Key.isEqual(entry.Key) {
|
||||
node.updateAccess(s.accessCnt)
|
||||
if node.entry.Data == nil {
|
||||
node.entry.Size = entry.Size
|
||||
node.entry.Data = entry.Data
|
||||
}
|
||||
if node.entry.req == nil {
|
||||
node.entry.req = entry.req
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue