Skip to content

xftp: count only committed files as used storage#1803

Open
pbottine wants to merge 1 commit into
simplex-chat:stablefrom
pbottine:ptp/stable-fix-issue-5-xftp-pending-accounting
Open

xftp: count only committed files as used storage#1803
pbottine wants to merge 1 commit into
simplex-chat:stablefrom
pbottine:ptp/stable-fix-issue-5-xftp-pending-accounting

Conversation

@pbottine

@pbottine pbottine commented Jun 8, 2026

Copy link
Copy Markdown

Summary

  • Count only XFTP files with a committed file_path as used storage.
  • Apply the same accounting rule to STM and Postgres file stores.
  • Keep pending rows visible in file count accounting.
  • Add store tests covering pending and committed storage totals.

Tests

  • git diff --check origin/stable..HEAD
  • PGHOST=127.0.0.1 cabal test simplexmq-test -fserver_postgres --extra-include-dirs=/opt/homebrew/opt/openssl@3/include --extra-lib-dirs=/opt/homebrew/opt/openssl@3/lib --test-option=--match --test-option='committed used storage and file count'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant