mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-19 22:46:20 -05:00
* A secondary deletes its own stale write-ahead logs, and the sync leaves no stray files Found by the first sync between two real machines: - The primary's unfinished files (SQLite logs, partial downloads) were excluded from the copy, and an excluded path is never deleted on the receiving side. So a secondary kept its own write-ahead log beside a map search database the primary had replaced, and SQLite would apply that log to the new database. These patterns are now only hidden on the primary's side, so the secondary's stale ones are deleted (to the trash). - Reading the incoming snapshot to check it made a -wal and -shm beside it, which stayed behind when the snapshot was moved into place. It is now opened immutable. - The primary's info, written by the Controller (root), belonged to root. Files the Controller writes in the media directory now belong to its owner, like the directories it makes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * With deletes turned off, a secondary still drops its stale unfinished files Review found that the hide rules of the previous commit only take effect through --delete, which is not given when delete_after_days is null (never delete). A secondary then kept its own write-ahead log beside a database the primary had replaced, and SQLite applied it to the new database. Without a trash, --delete is now given with every path protected except the unfinished patterns (and what is inside an unfinished folder), so only those are removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_admin.py | ||
| test_admin_api.py | ||
| test_api.py | ||
| test_captive_portal.py | ||
| test_config.py | ||
| test_defaults.py | ||
| test_disks.py | ||
| test_disks_api.py | ||
| test_docker_services.py | ||
| test_fstab.py | ||
| test_fstab_migration.py | ||
| test_fstab_yaml.py | ||
| test_mount_executor.py | ||
| test_onboarding.py | ||
| test_onboarding_api.py | ||
| test_readiness.py | ||
| test_ready_api.py | ||
| test_reconciler.py | ||
| test_rsyncd.py | ||
| test_samba.py | ||
| test_samba_api.py | ||
| test_schemas.py | ||
| test_scripts.py | ||
| test_scripts_api.py | ||
| test_services_api.py | ||
| test_smart.py | ||
| test_status.py | ||
| test_status_api.py | ||
| test_status_worker.py | ||
| test_sync.py | ||
| test_systemd.py | ||
| test_wrol_mode.py | ||