Ticket #3150: BPlusTree.cpp.patch
File BPlusTree.cpp.patch, 981 bytes (added by , 12 years ago) |
---|
-
(a) BPlusTree.cpp vs. (b) /boot/home/BPlusTree.cpp.new
a b 649 649 RETURN_ERROR(fStatus = B_IO_ERROR); 650 650 651 651 // is header valid? 652 653 if (fHeader.MaximumSize() != stream->Size()) {654 dprintf("B+tree header size %" B_PRIdOFF " doesn't fit file size %"655 B_PRIdOFF "!\n", fHeader.MaximumSize(), stream->Size());656 // we can't change the header since we don't have a transaction657 //fHeader.maximum_size = HOST_ENDIAN_TO_BFS_INT64(stream->Size());658 }659 652 if (!fHeader.IsValid()) { 653 if (fHeader.MaximumSize() != stream->Size()) { 654 dprintf("B+tree header size %" B_PRIdOFF " doesn't fit file size %" 655 B_PRIdOFF "!\n", fHeader.MaximumSize(), stream->Size()); 656 // we can't change the header since we don't have a transaction 657 //fHeader.maximum_size = HOST_ENDIAN_TO_BFS_INT64(stream->Size()); 658 } 660 659 #ifdef DEBUG 661 660 dump_bplustree_header(&fHeader); 662 661 dump_block((const char*)&fHeader, 128);