Skip to content

Commit

Permalink
Only rehash if this isn't read-only
Browse files Browse the repository at this point in the history
  • Loading branch information
mkeeter committed Oct 24, 2023
1 parent 14c8eb7 commit 622ef9b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion downstairs/src/extent_inner_sqlite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,9 @@ impl SqliteInner {
};
// Clean out any irrelevant block contexts, which may be present
// if downstairs crashed between a write() and a flush().
out.fully_rehash_and_clean_all_stale_contexts(false)?;
if !read_only {
out.fully_rehash_and_clean_all_stale_contexts(false)?;
}
Ok(out)
}

Expand Down

0 comments on commit 622ef9b

Please sign in to comment.