fix: preserve shared cache response semantics and recover from contention

This commit is contained in:
Thomas Durieux committed 2026-11-02 13:03:07 +00:00
1 parent 0efa1590c9
commit 4b8635bd53
7 files changed
+272 -83

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@ async function main(){
const now=Date.now();cache.db.exec('BEGIN');
const blob=cache.db.prepare('INSERT INTO blobs VALUES(?,?,?,?,?,?,?)');
const alias=cache.db.prepare('INSERT INTO aliases VALUES(?,?)');
const decision=cache.db.prepare('INSERT INTO decisions VALUES(?,?,?,?,?)');
const decision=cache.db.prepare('INSERT INTO decisions(key,digest,changed,accessed,expires) VALUES(?,?,?,?,?)');
const history=cache.db.prepare('INSERT INTO history VALUES(?,?,0)');
for(let i=0;i<cardinality;i++){
// Metadata-only dummy rows, never opened. Real lookups/fills use the separate verified content above.