aboutsummaryrefslogtreecommitdiff
path: root/cursor.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-05-03 16:21:45 -0600
committerBen Johnson <benbjohnson@yahoo.com>2014-05-03 16:21:45 -0600
commit60624c4c19c9ddafe5caa3140189468b1ac55987 (patch)
tree2b153687714f327438ef7a835097c7906561eea5 /cursor.go
parentMerge pull request #147 from benbjohnson/stats (diff)
parentRefactor split/spill. (diff)
downloaddedo-60624c4c19c9ddafe5caa3140189468b1ac55987.tar.gz
dedo-60624c4c19c9ddafe5caa3140189468b1ac55987.tar.xz
Merge pull request #148 from benbjohnson/split-spill
Refactor split/spill
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 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)