mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 10:08:20 +00:00
Wait till we write the page to increment current page in wal checkpoint
This commit is contained in:
parent
9f966910bc
commit
eecf6ae6e6
1 changed files with 1 additions and 1 deletions
|
@ -748,7 +748,6 @@ impl Wal for WalFile {
|
|||
self.buffer_pool.clone(),
|
||||
)?;
|
||||
self.ongoing_checkpoint.state = CheckpointState::WaitReadFrame;
|
||||
self.ongoing_checkpoint.current_page += 1;
|
||||
continue 'checkpoint_loop;
|
||||
}
|
||||
}
|
||||
|
@ -778,6 +777,7 @@ impl Wal for WalFile {
|
|||
if (self.ongoing_checkpoint.current_page as usize)
|
||||
< shared.pages_in_frames.lock().len()
|
||||
{
|
||||
self.ongoing_checkpoint.current_page += 1;
|
||||
self.ongoing_checkpoint.state = CheckpointState::ReadFrame;
|
||||
} else {
|
||||
self.ongoing_checkpoint.state = CheckpointState::Done;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue