diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-01-27 22:22:37 -0500 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-01-27 22:22:37 -0500 |
commit | ef590ecdfb8880dda7d844165924b35f5dd758ab (patch) | |
tree | da08883acddab7e71136f8baa28810be0081ff89 /db.go | |
parent | Intermediate. (diff) | |
download | dedo-ef590ecdfb8880dda7d844165924b35f5dd758ab.tar.gz dedo-ef590ecdfb8880dda7d844165924b35f5dd758ab.tar.xz |
lpage
Diffstat (limited to 'db.go')
-rw-r--r-- | db.go | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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) |