Skip to content

Commit adee057

Browse files
nit
1 parent 56983cc commit adee057

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

storage/src/journal/segmented/variable.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1364,12 +1364,13 @@ mod tests {
13641364
page_cache: CacheRef::from_pooler(&context, PAGE_SIZE, PAGE_CACHE_SIZE),
13651365
write_buffer: NZUsize!(1024),
13661366
};
1367+
1368+
// Leave one byte in the first page so the trailing bytes below cross the page
1369+
// boundary and repair must issue a physical resize.
13671370
let section = 1u64;
13681371
let item = [10u8; 1021];
13691372
let item_record_size =
13701373
UInt(item.encode_size() as u32).encode_size() + item.encode_size();
1371-
// Leave one byte in the first page so the trailing bytes below cross the page
1372-
// boundary and repair must issue a physical resize.
13731374
assert_eq!(item_record_size, PAGE_SIZE.get() as usize - 1);
13741375

13751376
let mut journal = Journal::init(context.child("first"), cfg.clone())

0 commit comments

Comments
 (0)