Fix the bug for btree header fetch

This commit is contained in:
lionsoul 2018-07-31 15:58:11 +08:00
parent f2f80fc5b3
commit f82d3be466
1 changed files with 2 additions and 2 deletions

View File

@ -163,8 +163,8 @@ public class DbSearcher
//check and load the header
if ( HeaderSip == null ) {
raf.seek(8L); //pass the super block
//byte[] b = new byte[dbConfig.getTotalHeaderSize()];
byte[] b = new byte[4096];
byte[] b = new byte[dbConfig.getTotalHeaderSize()];
// byte[] b = new byte[4096];
raf.readFully(b, 0, b.length);
//fill the header