Skip to content
This repository has been archived by the owner on Dec 3, 2018. It is now read-only.

fix mmap error type #3

Merged
merged 1 commit into from
Jul 20, 2017
Merged

fix mmap error type #3

merged 1 commit into from
Jul 20, 2017

Conversation

lukechampine
Copy link
Member

Previously MmapError was useless because a type assertion for it would also return true for any other error type. That is,

if _, ok := err.(bolt.MmapError); ok {

}

would result in ok == true even if the error didn't result from an mmap failure. 😞

@DavidVorick DavidVorick merged commit 20be698 into master Jul 20, 2017
lukechampine pushed a commit that referenced this pull request Feb 14, 2018
Garbage collect pages allocated after minimum txid
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants