Skip to content

Commit

Permalink
fix bug on column layout
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangzhe authored and jiangzhe committed Dec 8, 2024
1 parent 10b1723 commit 3d02dc4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doradb-storage/src/row/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ impl Layout {
Layout::Byte4 => 4,
Layout::Byte8 => 8,
Layout::Byte16 => 16,
// 2-byte len, 2-byte offset, 12-byte prefix
// or inline version, 2-byte len, at most 14 inline bytes
Layout::VarByte => 16,
// 2-byte len, 2-byte offset, 4-byte prefix
// or inline version, 2-byte len, at most 6 inline bytes
Layout::VarByte => 8,
}
}
}

0 comments on commit 3d02dc4

Please sign in to comment.