From 754966bea08146857dea0d9de05e95a4fc7947e8 Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Wed, 28 May 2014 12:50:46 -0600 Subject: Optimize Tx.Check(). This commit removes several memory allocations occurring on every page and also caches the freelist map used when iterating over the pages. This results in significantly better performance. --- cmd/bolt/check.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/bolt/check.go') diff --git a/cmd/bolt/check.go b/cmd/bolt/check.go index 1466fd7..7555ec8 100644 --- a/cmd/bolt/check.go +++ b/cmd/bolt/check.go @@ -38,7 +38,7 @@ func Check(path string) { // Print summary of errors. if count > 0 { - fatalf("%d errors found") + fatalf("%d errors found", count) } else { println("OK") } -- cgit v1.2.3