figcraft/apps/figcraft-server/src
Justin John 8e12e5eeda
fix(server): never persist a snapshot the reader refuses (#188) (#236)
Snapshots hold more than the document (recent batches, deletions), so near
the cap compaction could write one over max_file_bytes, which both readers
then refused: the file vanished on restart. Reading now allows twice the
cap, and compaction refuses a snapshot beyond that, keeping the old
snapshot and log.

Co-authored-by: Justin John <babyjjbabyjj549@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 10:31:30 +07:00
..
abuse.rs M9: share with a join code: online through the built-in server or on the local network 2026-10-12 19:42:28 +07:00
background_tests.rs M11: plugin installs saved at once; directory and library requests off the UI thread 2026-10-12 06:15:00 +07:00
cli.rs M9: share with a join code: online through the built-in server or on the local network 2026-10-12 19:42:28 +07:00
cli_tests.rs M9: open hosting mode for public figcraft-server 2026-10-12 11:40:03 +07:00
codes.rs M9: share with a join code: online through the built-in server or on the local network 2026-10-12 19:42:28 +07:00
codes_tests.rs M9: share with a join code: stop sharing keeps the file 2026-10-12 19:42:28 +07:00
config.rs M9: close the remaining open-hosting DoS paths 2026-10-12 11:40:03 +07:00
directory.rs M9: close the remaining open-hosting DoS paths 2026-10-12 11:40:03 +07:00
directory_tests.rs M9: close the remaining open-hosting DoS paths 2026-10-12 11:40:03 +07:00
disk.rs M9: close the remaining open-hosting DoS paths 2026-10-12 11:40:03 +07:00
hardening_tests.rs fix(server): never persist a snapshot the reader refuses (#188) (#236) 2026-10-14 10:31:30 +07:00
lib.rs M9: online files: the app remembers the files it put online 2026-10-13 01:41:14 +07:00
library_tests.rs M9: harden open hosting against resource exhaustion 2026-10-12 11:40:03 +07:00
main.rs M9: hosting figcraft-server: wss in the desktop app, server releases, deployment guide (#125) 2026-10-11 15:52:27 +07:00
owned_tests.rs M9: online files: the app remembers the files it put online 2026-10-13 01:41:14 +07:00
public_tests.rs M9: online files: the app remembers the files it put online 2026-10-13 01:41:14 +07:00
server_tests.rs M9: share with a join code: stop sharing keeps the file 2026-10-12 19:42:28 +07:00
store.rs fix(server): never persist a snapshot the reader refuses (#188) (#236) 2026-10-14 10:31:30 +07:00
store_tests.rs M9: open hosting mode for public figcraft-server 2026-10-12 11:40:03 +07:00
test_util.rs M9: live sessions per document 2026-10-12 17:54:18 +07:00