From a02ddf402bbfde5a2d6e8a26bae188527e157634 Mon Sep 17 00:00:00 2001 From: Martin Kobetic Date: Tue, 22 Apr 2014 20:32:09 +0000 Subject: rename MaxDepth to Depth --- bucket.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bucket.go') 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 -- cgit v1.2.3