diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-03-01 12:53:05 -0700 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-03-01 12:53:05 -0700 |
commit | 3a1b152562a98de231f73e35c4df03994268328e (patch) | |
tree | f5ea028ad0f740234b4f8a54a6dc137259b84db1 /db.go | |
parent | Merge pull request #57 from benbjohnson/node-aware-cursors (diff) | |
download | dedo-3a1b152562a98de231f73e35c4df03994268328e.tar.gz dedo-3a1b152562a98de231f73e35c4df03994268328e.tar.xz |
Ignore multiple transaction commit/rollback/close.
Diffstat (limited to 'db.go')
-rw-r--r-- | db.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -571,7 +571,7 @@ func (db *DB) Stat() (*Stat, error) { // page retrieves a page reference from the mmap based on the current page size. func (db *DB) page(id pgid) *page { - pos := id*pgid(db.pageSize) + pos := id * pgid(db.pageSize) return (*page)(unsafe.Pointer(&db.data[pos])) } |