From b8be9cb27a1e8b5bf5ef142d2e3751a00f5afff4 Mon Sep 17 00:00:00 2001 From: real_nowhereman Date: Thu, 10 Dec 2009 20:47:55 +0000 Subject: [PATCH] fixed a VERY nasty bug with BPlusTree (header was erroneously overwritten) --- fp-includes/core/core.bplustree.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fp-includes/core/core.bplustree.class.php b/fp-includes/core/core.bplustree.class.php index 8fb93ce..e4a2b46 100755 --- a/fp-includes/core/core.bplustree.class.php +++ b/fp-includes/core/core.bplustree.class.php @@ -1590,10 +1590,10 @@ class BPlusTree { trigger_error("cannot initialize without nodesize, keylen specified\n") ; } $this->length = 0; + $this->root_seek = 22; //pack('a5LCL3',...) $this->reset_header(); $file = $this->file; fseek($file, 0, SEEK_END); - $this->root_seek = ftell($file); $this->root = new BplusTree_Node( BPT_FLAG_LEAFANDROOT, $this->nodesize, $this->keylen, $this->root_seek, $file