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
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.
Metadata
Metadata
Assignees
Labels
No labels
Activity