Skip to content

why tx.db.grow() is not needed in tx.root.spill() #285

Closed
@uvletter

Description

I'm learning the source code of boltdb recently. In Commit tx.root.spill() would shift tx.meta.pgid possiblely when there is no enough room in freelist, but without a tx.db.grow(). If the following freelist serialization find a feat page in the freelist, the tx.db.grow() would be eliminated, is it the expected behave?
Thanks a lot

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions