apenwarr-redo/t/flush-cache.sh
Avery Pennarun a62bd50d44 Switch state.py to use sqlite3 instead of filesystem-based stamps.
It passes all tests when run serialized, but still gives weird errors
(OperationalError: database is locked) when run with -j5.  sqlite3 shouldn't
be barfing just because the database is locked, since the default timeout is
5 seconds, and it's dying *way* faster than that.
2010-12-10 00:50:52 -08:00

7 lines
279 B
Bash
Executable file

#!/bin/sh
#echo "Flushing redo cache..." >&2
(
echo "update Files set checked_runid=null;"
echo "update Files set changed_runid=changed_runid-1;"
#echo "update Files set stamp='dirty' where id in (select distinct target from Deps);"
) | sqlite3 "$REDO_BASE/.redo/db.sqlite3"