Skip to content
Snippets Groups Projects
Commit 4a8546e4 authored by Jan Kadlec's avatar Jan Kadlec
Browse files

journal: added lock for journal flush

parent b2a745fe
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,11 @@ static void discard_zone(zone_t *zone)
{
/* Flush bootstrapped zones. */
if (zone->zonefile_mtime == 0) {
pthread_mutex_lock(&zone->journal_lock);
zone_flush_journal(zone);
pthread_mutex_unlock(&zone->journal_lock);
}
zone_free(&zone);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment