diff options
author | Martin Kobetic <mkobetic@gmail.com> | 2014-04-22 20:32:09 +0000 |
---|---|---|
committer | Martin Kobetic <mkobetic@gmail.com> | 2014-04-22 20:32:09 +0000 |
commit | a02ddf402bbfde5a2d6e8a26bae188527e157634 (patch) | |
tree | ab98a1cfc0c8ffc48a85140c3bc0acde60ceac01 /bucket.go | |
parent | skip space assertions for incompatible page size (diff) | |
download | dedo-a02ddf402bbfde5a2d6e8a26bae188527e157634.tar.gz dedo-a02ddf402bbfde5a2d6e8a26bae188527e157634.tar.xz |
rename MaxDepth to Depth
Diffstat (limited to 'bucket.go')
-rw-r--r-- | bucket.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |