salvage 2026-11-06: uncommitted work from scratch/darkwing-scratch/r186/wt (disk cleanup #824)

This commit is contained in:
mos committed 2026-11-06 10:04:28 -06:00
1 parent 1d7fd75e23
commit 9f3bd59399
3 files changed
+44 -8

No files matched your search

+10 -3
View File
@@ -797,6 +797,9 @@ plan() {
echo "store schema: $S_SCHEMA ($S_FROM)"
echo "target schema: $T_SCHEMA"
[ "$S_SCHEMA" = "$P_SCHEMA" ] || [ -n "$S_CHANGED" ] || echo "note: the pointer says $P_SCHEMA; the run reads the stopped store and goes by that"
# Row 186: set when run_steps would roll back with store-newer or migration-needs-flag, which
# come before backup_store. A read the bus stopped under judges nothing, so it keeps the backup line.
local early=""
if [ -n "$S_CHANGED" ]; then
: # no migration or restore line from a read the bus stopped under
elif [ "$S_SCHEMA" = "$T_SCHEMA" ]; then
@@ -806,17 +809,21 @@ plan() {
echo "migration steps: $(plan_steps)"
echo "needs: --migrate$([ "$MIGRATE" = 1 ] && echo ' (given)' || echo ' (not given; the run would roll back with migration-needs-flag)')"
echo "needs: Jason present for this run (decision 96 condition 2)"
[ "$MIGRATE" = 1 ] || early=1
elif [ "$OP" = activate ]; then
echo "migration: none possible; $S_SCHEMA is not in $T_SCHEMA's migration chain, so the run would roll back with store-newer"
early=1
else
echo "restore: the store must go back to $T_SCHEMA; needs --restore $(from_log backup || echo ACTIVATION)"
fi
if [ "$OP" != activate ]; then
: # rollback takes no backup of its own
elif [ -e "$STORE" ]; then
echo "backup: the run backs up the stopped store to $DATA/backups/stack/<activation>/ before any migration"
else
elif [ ! -e "$STORE" ]; then
echo "backup: none; there is no store file"
elif [ -n "$early" ]; then
echo "backup: none; the run rolls back before the backup"
else
echo "backup: the run backs up the stopped store to $DATA/backups/stack/<activation>/ before any migration"
fi
plan_commits
[ "$P_PENDING" = 0 ] || echo "pm: the pointer is pending (activate --pm-after-harness); the bus runs without its PM"