You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fnwrite_index(&self,time:u64,offset:u64) -> Result<()>{// Use BigEndian here to keep consistent with DataOutputStream in Java.letmut idx_out = self.cur_metric_idx_file.as_ref().unwrap().write().unwrap();
idx_out.write_all(&time.to_be_bytes())?;
idx_out.write_all(&offset.to_be_bytes())?;
idx_out.flush()?;Ok(())}
The text was updated successfully, but these errors were encountered:
flearc
added a commit
to flearc/sentinel-rust
that referenced
this issue
Apr 16, 2024
find_offset_to_start read 4 bytes from the idx file as the offset.
But write_index use 8 bytes to store it.
The text was updated successfully, but these errors were encountered: