Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
fcf6b9a8
Commit
fcf6b9a8
authored
Mar 30, 2026
by
Luke Sandberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nit: not pub
parent
b1c86cab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
db.rs
turbopack/crates/turbo-persistence/src/db.rs
+2
-2
No files found.
turbopack/crates/turbo-persistence/src/db.rs
View file @
fcf6b9a8
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment