mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 17:15:56 +00:00
track retries correctly in truncation case
This commit is contained in:
parent
176d49e4b5
commit
2826ecc0b7
1 changed files with 1 additions and 0 deletions
|
|
@ -333,6 +333,7 @@ func newGeneration(existing generation, path string, readData bool, setup func([
|
|||
m := mmapGeneration{path: path, logger: logger}
|
||||
if existing != nil {
|
||||
m.generation = existing.Generation() + 1
|
||||
m.retries = existing.(*mmapGeneration).retries
|
||||
// we might keep a previous generation around just for its generation count.
|
||||
if !existing.Dead() {
|
||||
defer existing.Done()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue