aboutsummaryrefslogtreecommitdiff
path: root/node.go
diff options
context:
space:
mode:
Diffstat (limited to 'node.go')
-rw-r--r--node.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/node.go b/node.go
index 0a4c7af..709c0ca 100644
--- a/node.go
+++ b/node.go
@@ -233,6 +233,9 @@ func (n *node) rebalance() {
}
n.unbalanced = false
+ // Update statistics.
+ n.tx.stats.Rebalance++
+
// Ignore if node is above threshold (25%) and has enough keys.
var threshold = n.tx.db.pageSize / 4
if n.size() > threshold && len(n.inodes) > n.minKeys() {