diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-04-02 16:03:16 -0600 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-04-02 16:03:16 -0600 |
commit | 20a1479c4c7ff050fe6ecdec9f13a9b3eb29c760 (patch) | |
tree | ba4d50edab37175bd1f1958e458257b50f27fe90 /node.go | |
parent | Merge pull request #111 from benbjohnson/flock (diff) | |
parent | Add performance counters. (diff) | |
download | dedo-20a1479c4c7ff050fe6ecdec9f13a9b3eb29c760.tar.gz dedo-20a1479c4c7ff050fe6ecdec9f13a9b3eb29c760.tar.xz |
Merge pull request #112 from benbjohnson/perf-stats
Add performance counters.
Diffstat (limited to 'node.go')
-rw-r--r-- | node.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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() { |