bump max_loops to 100k

This commit is contained in:
Jussi Saurio
2025-05-25 10:21:41 +03:00
parent 208639c5ee
commit 20e65c0125

View File

@@ -758,7 +758,7 @@ impl WalFileShared {
let header = if file.size()? > 0 {
let wal_file_shared = sqlite3_ondisk::read_entire_wal_dumb(&file)?;
// TODO: Return a completion instead.
let mut max_loops = 1000;
let mut max_loops = 100000;
while !unsafe { &*wal_file_shared.get() }
.loaded
.load(Ordering::SeqCst)