aboutsummaryrefslogtreecommitdiff
path: root/db.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-01-27 22:22:37 -0500
committerBen Johnson <benbjohnson@yahoo.com>2014-01-27 22:22:37 -0500
commitef590ecdfb8880dda7d844165924b35f5dd758ab (patch)
treeda08883acddab7e71136f8baa28810be0081ff89 /db.go
parentIntermediate. (diff)
downloaddedo-ef590ecdfb8880dda7d844165924b35f5dd758ab.tar.gz
dedo-ef590ecdfb8880dda7d844165924b35f5dd758ab.tar.xz
lpage
Diffstat (limited to 'db.go')
-rw-r--r--db.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/db.go b/db.go
index 2d7538b..9d003ab 100644
--- a/db.go
+++ b/db.go
@@ -156,11 +156,8 @@ func (db *DB) mmap() error {
// init creates a new database file and initializes its meta pages.
func (db *DB) init() error {
- // Set the page size to the OS page size unless that is larger than max page size.
+ // Set the page size to the OS page size.
db.pageSize = db.os.Getpagesize()
- if db.pageSize > maxPageSize {
- db.pageSize = maxPageSize
- }
// Create two meta pages on a buffer.
buf := make([]byte, db.pageSize*2)