Skip to content
This repository has been archived by the owner on Mar 9, 2019. It is now read-only.
This repository has been archived by the owner on Mar 9, 2019. It is now read-only.

Cursor.Last() returns nil for non-empty bucket  #753

Open
@Hittorp

Description

Sometimes after a bunch of deletes Last() for new cursor returns nil for non-empty bucket. Code to reproduce is here.

May be it's enough to put n.rebalance() at the end of (n *node) del(key []byte) to fix this.

Hi @benbjohnson,
Could you please confirm the solution?

I am not sure about invariants that should provide cursor.Delete(). Is it ok to get an empty leaf page after delete a key?

Thank you.

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