From: Libor Peltan Date: Mon, 1 Apr 2019 16:27:08 +0000 (+0200) Subject: remove unused mutex X-Git-Tag: v2.9.0~302 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c80ae4e7610fa1e5b2bbd4217ff9b282f0f03f1;p=thirdparty%2Fknot-dns.git remove unused mutex --- diff --git a/src/knot/zone/zone.c b/src/knot/zone/zone.c index 597027cabc..239fa8c07e 100644 --- a/src/knot/zone/zone.c +++ b/src/knot/zone/zone.c @@ -175,9 +175,6 @@ zone_t* zone_new(const knot_dname_t *name) zone->ddns_queue_size = 0; init_list(&zone->ddns_queue); - // Journal lock - pthread_mutex_init(&zone->journal_lock, NULL); - // Preferred master lock pthread_mutex_init(&zone->preferred_lock, NULL); @@ -215,7 +212,6 @@ void zone_free(zone_t **zone_ptr) free_ddns_queue(zone); pthread_mutex_destroy(&zone->ddns_lock); - pthread_mutex_destroy(&zone->journal_lock); /* Control update. */ zone_control_clear(zone); diff --git a/src/knot/zone/zone.h b/src/knot/zone/zone.h index f6b82ed3c0..e5cb2f7eb6 100644 --- a/src/knot/zone/zone.h +++ b/src/knot/zone/zone.h @@ -71,9 +71,6 @@ typedef struct zone /*! \brief Control update context. */ struct zone_update *control_update; - /*! \brief Journal access lock. */ - pthread_mutex_t journal_lock; - /*! \brief Ptr to journal DB (in struct server) */ knot_lmdb_db_t *journaldb;