Skip to content

Commit

Permalink
Fix WAL comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hicder committed Feb 4, 2025
1 parent 599924a commit b3a55f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rs/index/src/wal/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ const VERSION_1: &[u8] = b"version1";
/// | 8 bytes | 8 bytes | 4 bytes | ... |
///
/// Each data entry will have the following format (n is number of vectors):
/// | length | doc_ids | user_ids | data |
/// | 4 bytes | 16 bytes * n | 16 bytes * n | 4 bytes * n * num_features |
/// | length | doc_ids | user_ids | data | op_type |
/// | 4 bytes | 16 bytes * n | 16 bytes * n | 4 bytes * n * num_features | 1 byte |
///
/// To compute number of vectors in each entry: length / (16 + 16 + 4 * num_features)
/// To compute number of vectors in each entry: (length - 1) / (16 + 16 + 4 * num_features)
#[allow(unused)]
pub struct WalFile {
file: File,
Expand Down

0 comments on commit b3a55f2

Please sign in to comment.