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.
7 lines
279 B
Bash
Executable file
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"
|