From 25fea2fd9f78434299036fe3a23c65dc9613f0bb Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Fri, 2 May 2014 13:59:23 -0600 Subject: Refactor split/spill. --- cursor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cursor.go') diff --git a/cursor.go b/cursor.go index 13f2a06..520edd4 100644 --- a/cursor.go +++ b/cursor.go @@ -192,7 +192,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: "+p.typ()) + _assert((p.flags&(branchPageFlag|leafPageFlag)) != 0, "invalid page type: %d: %s", p.id, p.typ()) } e := elemRef{page: p, node: n} c.stack = append(c.stack, e) -- cgit v1.2.3