0beaced90f
Prepopulate was setting entry.Expiry.HeapIndex to 0. Previously this would result in a call to heap.Fix(0) which wasn't correct, but was also not really a problem because at worse it would re-notify. With the recent change to extract cachettl it was changed to call Update(idx), which would have updated the wrong entry. A previous commit removed the setting of entry.Expiry so that the HeapIndex would be reported as -1, and this commit adds a test and handles the -1 heap index. |
||
---|---|---|
.. | ||
decode | ||
file | ||
retry | ||
semaphore | ||
serf | ||
stringslice | ||
template | ||
ttlcache | ||
cluster.go | ||
cluster_test.go | ||
eof.go | ||
json.go | ||
map_walker.go | ||
map_walker_test.go | ||
math.go | ||
math_test.go | ||
path.go | ||
rand.go | ||
rtt.go | ||
rtt_test.go | ||
stop_context.go | ||
stop_context_test.go | ||
telemetry.go | ||
telemetry_test.go | ||
testing_httpserver.go | ||
translate.go | ||
translate_test.go | ||
useragent.go | ||
useragent_test.go | ||
uuid.go |