aboutsummaryrefslogtreecommitdiff
path: root/cursor.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-05-21 13:46:12 -0600
committerBen Johnson <benbjohnson@yahoo.com>2014-05-21 13:46:12 -0600
commit7432bc341f8bbfc73eefc3278f2698e712e516b8 (patch)
tree33897520b5bd98383fe3b17cc9090e931c690b9c /cursor.go
parentMerge pull request #171 from Shopify/tx_copy (diff)
parentFix freelist allocate(). (diff)
downloaddedo-7432bc341f8bbfc73eefc3278f2698e712e516b8.tar.gz
dedo-7432bc341f8bbfc73eefc3278f2698e712e516b8.tar.xz
Merge pull request #169 from benbjohnson/allocation
Fix freelist allocation direction.
Diffstat (limited to 'cursor.go')
-rw-r--r--cursor.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cursor.go b/cursor.go
index 31a3d5f..1c14d05 100644
--- a/cursor.go
+++ b/cursor.go
@@ -193,7 +193,7 @@ func (c *Cursor) last() {
func (c *Cursor) search(key []byte, pgid pgid) {
p, n := c.bucket.pageNode(pgid)
if p != nil {
- _assert((p.flags&(branchPageFlag|leafPageFlag)) != 0, "invalid page type: %d: %s", p.id, p.typ())
+ _assert((p.flags&(branchPageFlag|leafPageFlag)) != 0, "invalid page type: %d: %x", p.id, p.flags)
}
e := elemRef{page: p, node: n}
c.stack = append(c.stack, e)