Commit fcf6b9a8 authored by Luke Sandberg's avatar Luke Sandberg

nit: not pub

parent b1c86cab
......@@ -108,7 +108,7 @@ struct TrackedStats {
/// Describes the currently-active write operation, if any.
#[derive(Debug, Clone)]
pub(crate) enum ActiveOperation {
enum ActiveOperation {
WriteBatch,
Compact,
}
......@@ -138,7 +138,7 @@ pub struct TurboPersistence<S: ParallelScheduler, const FAMILIES: usize> {
/// The inner state of the database. Writing will update that.
inner: RwLock<Inner<FAMILIES>>,
/// Tracks the currently-active write operation, if any. Prevents multiple concurrent write
/// operations. Protected by a Mutex so the guard can reset it on drop.
/// operations.
active_write_operation: Mutex<Option<ActiveOperation>>,
/// A cache for decompressed key blocks.
key_block_cache: BlockCache,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment