aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md4
-rw-r--r--bolt_386.go3
-rw-r--r--bolt_amd64.go3
-rw-r--r--bolt_arm.go3
-rw-r--r--cmd/bolt/info.go2
-rw-r--r--page.go1
6 files changed, 12 insertions, 4 deletions
diff --git a/README.md b/README.md
index bfaccfc..8cc9f3c 100644
--- a/README.md
+++ b/README.md
@@ -187,7 +187,7 @@ if err != nil {
defer tx.Rollback()
// Use the transaction...
-_, err := tx.CreateBucket([]byte("MyBucket")
+_, err := tx.CreateBucket([]byte("MyBucket"))
if err != nil {
return err
}
@@ -446,7 +446,7 @@ or to provide an HTTP endpoint that will perform a fixed-length sample.
For more information on getting started with Bolt, check out the following articles:
* [Intro to BoltDB: Painless Performant Persistence](http://npf.io/2014/07/intro-to-boltdb-painless-performant-persistence/) by [Nate Finch](https://github.com/natefinch).
-
+* [Bolt -- an embedded key/value database for Go](https://www.progville.com/go/bolt-embedded-db-golang/) by Progville
## Comparison with other databases
diff --git a/bolt_386.go b/bolt_386.go
index cc21894..e659bfb 100644
--- a/bolt_386.go
+++ b/bolt_386.go
@@ -2,3 +2,6 @@ package bolt
// maxMapSize represents the largest mmap size supported by Bolt.
const maxMapSize = 0x7FFFFFFF // 2GB
+
+// maxAllocSize is the size used when creating array pointers.
+const maxAllocSize = 0xFFFFFFF
diff --git a/bolt_amd64.go b/bolt_amd64.go
index 4262932..cca6b7e 100644
--- a/bolt_amd64.go
+++ b/bolt_amd64.go
@@ -2,3 +2,6 @@ package bolt
// maxMapSize represents the largest mmap size supported by Bolt.
const maxMapSize = 0xFFFFFFFFFFFF // 256TB
+
+// maxAllocSize is the size used when creating array pointers.
+const maxAllocSize = 0x7FFFFFFF
diff --git a/bolt_arm.go b/bolt_arm.go
index cc21894..e659bfb 100644
--- a/bolt_arm.go
+++ b/bolt_arm.go
@@ -2,3 +2,6 @@ package bolt
// maxMapSize represents the largest mmap size supported by Bolt.
const maxMapSize = 0x7FFFFFFF // 2GB
+
+// maxAllocSize is the size used when creating array pointers.
+const maxAllocSize = 0xFFFFFFF
diff --git a/cmd/bolt/info.go b/cmd/bolt/info.go
index 5606e68..cb01e38 100644
--- a/cmd/bolt/info.go
+++ b/cmd/bolt/info.go
@@ -22,5 +22,5 @@ func Info(path string) {
// Print basic database info.
var info = db.Info()
- printf("Page Size: %d", info.PageSize)
+ printf("Page Size: %d\n", info.PageSize)
}
diff --git a/page.go b/page.go
index b3dc473..58e43c4 100644
--- a/page.go
+++ b/page.go
@@ -8,7 +8,6 @@ import (
const pageHeaderSize = int(unsafe.Offsetof(((*page)(nil)).ptr))
-const maxAllocSize = 0xFFFFFFF
const minKeysPerPage = 2
const branchPageElementSize = int(unsafe.Sizeof(branchPageElement{}))