aboutsummaryrefslogtreecommitdiff
path: root/bucket.go
diff options
context:
space:
mode:
authorMartin Kobetic <mkobetic@gmail.com>2014-04-22 20:32:09 +0000
committerMartin Kobetic <mkobetic@gmail.com>2014-04-22 20:32:09 +0000
commita02ddf402bbfde5a2d6e8a26bae188527e157634 (patch)
treeab98a1cfc0c8ffc48a85140c3bc0acde60ceac01 /bucket.go
parentskip space assertions for incompatible page size (diff)
downloaddedo-a02ddf402bbfde5a2d6e8a26bae188527e157634.tar.gz
dedo-a02ddf402bbfde5a2d6e8a26bae188527e157634.tar.xz
rename MaxDepth to Depth
Diffstat (limited to 'bucket.go')
-rw-r--r--bucket.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/bucket.go b/bucket.go
index 1b8722d..c429842 100644
--- a/bucket.go
+++ b/bucket.go
@@ -350,8 +350,8 @@ func (b *Bucket) Stat() *BucketStat {
s.BranchOverflowN += int(p.overflow)
}
- if depth+1 > s.MaxDepth {
- s.MaxDepth = (depth + 1)
+ if depth+1 > s.Depth {
+ s.Depth = (depth + 1)
}
})
s.BranchAlloc = (s.BranchPageN + s.BranchOverflowN) * pageSize
@@ -522,7 +522,7 @@ type BucketStat struct {
LeafPageN int
LeafOverflowN int
KeyN int
- MaxDepth int
+ Depth int
BranchAlloc int
BranchInuse int
LeafAlloc int