fix: align WAL multi-surface DB safety

- align app and standalone MCP busy-timeout and retry behavior
- guard live DB dev and restore flows
- document WAL maintenance boundaries
This commit is contained in:
“BeeRad”
2026-04-25 16:09:14 +10:00
parent b5ef0191d7
commit c9fb623e02
10 changed files with 226 additions and 48 deletions
+7
View File
@@ -26,6 +26,13 @@ fi
echo "Resolved DB path: $DB_PATH"
OWNERS="$(bash "$(dirname "$0")/rah-db-owners.sh" "$DB_PATH" || true)"
if [ -n "$OWNERS" ]; then
echo "⚠️ Live RA-H DB owners detected while creating a VACUUM INTO backup:"
echo "$OWNERS" | sed 's/^/ /'
echo " Continuing because this backup path does not replace/delete DB, WAL, or SHM files."
fi
BACKUP_DIR="$(dirname "$0")/../backups"
mkdir -p "$BACKUP_DIR"