mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2024-11-13 05:40:20 +01:00
Fixed toFront opertaion in LRU logic of base tile hashing. Tests now pass.
This commit is contained in:
parent
ed41cfbe01
commit
ef1a2de98e
|
@ -43,8 +43,11 @@ func (bth *BaseTileHash) toFront(entry *btHashEntry) {
|
|||
}
|
||||
entry.prev.next = entry.next
|
||||
entry.next.prev = entry.prev
|
||||
|
||||
entry.next = bth.root.next
|
||||
entry.prev = &bth.root
|
||||
|
||||
bth.root.next.prev = entry
|
||||
bth.root.next = entry
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user