[BPlus] fixing seek pos in string file

This commit is contained in:
real_nowhereman 2008-09-08 08:33:38 +00:00
parent 5572be3b3c
commit 621cefb175

View File

@ -2521,7 +2521,8 @@ class SBPlusTree extends BPlusTree {
}
function setstring($s) {
$seek = fseek($this->stringfile, 0, SEEK_END);
fseek($this->stringfile, 0, SEEK_END);
$seek = ftell($this->stringfile);
// nul-pad string
$x = str_pad($s, $this->maxstring, chr(0));
fwrite($this->stringfile, $x);