mirror of
https://github.com/aziascreations/BakaShrot.git
synced 2026-11-23 20:58:46 +01:00
Fixed two peers sending the same attachment at once, Noted the stream limits, Removed the PureBasic-era leftovers
- An attachment is received from one peer at a time: the others are refused NotReady and ask again at their next sync; one cut short lets the next one take it over - A 'replicating' row with all its bytes but never checked is asked again from part 0, and a peer asking from the wrong part resets it - Noted the stream limit (1,048,575 topic/node pairs, 2^43-1 message ids each) in the example config and known-issues.md - Removed NoDefaultTopic (code 6, retired), Writer::vacuum, the v8 detection and the old ini key tests - Cleared the PureBasic-era notes from the docs, revamp.md keeping only the old open items still unfixed; noted the GUI explorer (egui) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -36,18 +36,6 @@ impl Writer {
|
||||
batch.transaction.commit()?;
|
||||
Ok(value)
|
||||
}
|
||||
|
||||
/// Gives the space of deleted messages back to the disk: rewrites the
|
||||
/// database (`VACUUM`), then empties the WAL. SQLite reuses that space
|
||||
/// by itself; this only shrinks the file. Slow on a big database, and
|
||||
/// every other write waits meanwhile: the old server's `vacuum`
|
||||
/// command.
|
||||
pub fn vacuum(&mut self) -> Result<()> {
|
||||
self.connection.execute_batch("VACUUM")?;
|
||||
self.connection
|
||||
.query_row("PRAGMA wal_checkpoint(TRUNCATE)", [], |_| Ok(()))?;
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
/// What's written in one transaction ([`Writer::batch`]). Names come
|
||||
|
||||
Reference in New Issue
Block a user