Skip to content
This repository has been archived by the owner on Mar 4, 2018. It is now read-only.

Commit

Permalink
fix typo in struct field name
Browse files Browse the repository at this point in the history
Stat.OwerflowPages changed to Stat.OverflowPages
  • Loading branch information
bmatsuo committed Mar 28, 2014
1 parent fe588ed commit 7a5e844
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions env.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ type Stat struct {
Depth uint // Depth (height) of the B-tree
BranchPages uint64 // Number of internal (non-leaf) pages
LeafPages uint64 // Number of leaf pages
OwerflowPages uint64 // Number of overflow pages
OverflowPages uint64 // Number of overflow pages
Entries uint64 // Number of data items
}

Expand All @@ -131,7 +131,7 @@ func (env *Env) Stat() (*Stat, error) {
Depth: uint(_stat.ms_depth),
BranchPages: uint64(_stat.ms_branch_pages),
LeafPages: uint64(_stat.ms_leaf_pages),
OwerflowPages: uint64(_stat.ms_overflow_pages),
OverflowPages: uint64(_stat.ms_overflow_pages),
Entries: uint64(_stat.ms_entries)}
return &stat, nil
}
Expand Down
2 changes: 1 addition & 1 deletion txn.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func (txn *Txn) Stat(dbi DBI) (*Stat, error) {
Depth: uint(_stat.ms_depth),
BranchPages: uint64(_stat.ms_branch_pages),
LeafPages: uint64(_stat.ms_leaf_pages),
OwerflowPages: uint64(_stat.ms_overflow_pages),
OverflowPages: uint64(_stat.ms_overflow_pages),
Entries: uint64(_stat.ms_entries)}
return &stat, nil
}
Expand Down

0 comments on commit 7a5e844

Please sign in to comment.