Commit 1c80ae4e authored by Libor Peltan's avatar Libor Peltan

remove unused mutex

parent 5c62dc0d
...@@ -175,9 +175,6 @@ zone_t* zone_new(const knot_dname_t *name) ...@@ -175,9 +175,6 @@ zone_t* zone_new(const knot_dname_t *name)
zone->ddns_queue_size = 0; zone->ddns_queue_size = 0;
init_list(&zone->ddns_queue); init_list(&zone->ddns_queue);
// Journal lock
pthread_mutex_init(&zone->journal_lock, NULL);
// Preferred master lock // Preferred master lock
pthread_mutex_init(&zone->preferred_lock, NULL); pthread_mutex_init(&zone->preferred_lock, NULL);
...@@ -215,7 +212,6 @@ void zone_free(zone_t **zone_ptr) ...@@ -215,7 +212,6 @@ void zone_free(zone_t **zone_ptr)
free_ddns_queue(zone); free_ddns_queue(zone);
pthread_mutex_destroy(&zone->ddns_lock); pthread_mutex_destroy(&zone->ddns_lock);
pthread_mutex_destroy(&zone->journal_lock);
/* Control update. */ /* Control update. */
zone_control_clear(zone); zone_control_clear(zone);
......
...@@ -71,9 +71,6 @@ typedef struct zone ...@@ -71,9 +71,6 @@ typedef struct zone
/*! \brief Control update context. */ /*! \brief Control update context. */
struct zone_update *control_update; struct zone_update *control_update;
/*! \brief Journal access lock. */
pthread_mutex_t journal_lock;
/*! \brief Ptr to journal DB (in struct server) */ /*! \brief Ptr to journal DB (in struct server) */
knot_lmdb_db_t *journaldb; knot_lmdb_db_t *journaldb;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment