File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Expand file tree Collapse file tree 3 files changed +3
-4
lines changed File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -194,8 +194,7 @@ impl Decodable<IndexBlockParsedItem> for KeyedBlockHandle {
194194 return None ;
195195 }
196196
197- let file_offset = unwrap ! ( reader. read_u64_varint( ) ) ;
198- let size = unwrap ! ( reader. read_u32_varint( ) ) ;
197+ let handle = unwrap ! ( BlockHandle :: decode_from( reader) ) ;
199198
200199 let key_len: usize = unwrap ! ( reader. read_u16_varint( ) ) . into ( ) ;
201200 let key_start = offset + reader. position ( ) as usize ;
@@ -205,8 +204,8 @@ impl Decodable<IndexBlockParsedItem> for KeyedBlockHandle {
205204 Some ( IndexBlockParsedItem {
206205 prefix : None ,
207206 end_key : SliceIndexes ( key_start, key_start + key_len) ,
208- offset : BlockOffset ( file_offset ) ,
209- size,
207+ offset : handle . offset ( ) ,
208+ size : handle . size ( ) ,
210209 } )
211210 }
212211
You can’t perform that action at this time.
0 commit comments