mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-11-19 18:44:09 +01:00
fix: preserve shared cache response semantics and recover from contention
This commit is contained in:
1 parent
0efa1590c9
commit
4b8635bd53
7 files changed
+272
-83
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user