Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Commit 1beda6e

Browse files
authored
libsql: fix a typo around vacuum limits (#743)
It says 128MiB, but it was later changed to 32MiB, and the comment was not updated properly.
1 parent a12c28c commit 1beda6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqld/src/connection/libsql.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ impl<W: WalHook> Connection<W> {
606606
let freelist_count = self
607607
.conn
608608
.query_row("PRAGMA freelist_count", (), |row| row.get::<_, i64>(0))?;
609-
// NOTICE: don't bother vacuuming if we don't have at least 128MiB of data
609+
// NOTICE: don't bother vacuuming if we don't have at least 32MiB of data
610610
if page_count >= 8192 && freelist_count * 2 > page_count {
611611
tracing::debug!("Vacuuming: pages={page_count} freelist={freelist_count}");
612612
self.conn.execute("VACUUM", ())?;

0 commit comments

Comments
 (0)