aboutsummaryrefslogtreecommitdiff
path: root/db.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-05-27 12:08:33 -0600
committerBen Johnson <benbjohnson@yahoo.com>2014-05-27 12:08:33 -0600
commit93338e17eccebb077f96aabc7edc8f1c98c1b79d (patch)
treefe1fdb4aed24d100cac337e18afce207674fd65e /db.go
parentMerge branch 'master' of https://github.com/boltdb/bolt (diff)
parentRemove DB.Check(). Allow read-only Tx.Check(). (diff)
downloaddedo-93338e17eccebb077f96aabc7edc8f1c98c1b79d.tar.gz
dedo-93338e17eccebb077f96aabc7edc8f1c98c1b79d.tar.xz
Merge pull request #174 from benbjohnson/remove-db-check
Remove DB.Check(). Allow read-only Tx.Check().
Diffstat (limited to 'db.go')
-rw-r--r--db.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/db.go b/db.go
index 5b6cc3e..7b17086 100644
--- a/db.go
+++ b/db.go
@@ -501,14 +501,6 @@ func (db *DB) Stats() Stats {
return db.stats
}
-// Check performs several consistency checks on the database.
-// An error is returned if any inconsistency is found.
-func (db *DB) Check() error {
- return db.Update(func(tx *Tx) error {
- return tx.Check()
- })
-}
-
// This is for internal access to the raw data bytes from the C cursor, use
// carefully, or not at all.
func (db *DB) Info() *Info {