diff --git a/src/util/fossilize_db.c b/src/util/fossilize_db.c index d3c039e90d3..013575a67a1 100644 --- a/src/util/fossilize_db.c +++ b/src/util/fossilize_db.c @@ -448,6 +448,7 @@ foz_write_entry(struct foz_db *foz_db, const uint8_t *cache_key_160bit, _mesa_hash_table_u64_search(foz_db->index_db, hash); if (entry) { simple_mtx_unlock(&foz_db->mtx); + flock(fileno(foz_db->file[0]), LOCK_UN); return NULL; }