]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
remove unused mutex
authorLibor Peltan <libor.peltan@nic.cz>
Mon, 1 Apr 2019 16:27:08 +0000 (18:27 +0200)
committerLibor Peltan <libor.peltan@nic.cz>
Mon, 1 Apr 2019 16:27:08 +0000 (18:27 +0200)
src/knot/zone/zone.c
src/knot/zone/zone.h

index 597027cabc1d0355d2f226ff4301f83ae40b6647..239fa8c07e3788379fd586ce884461072193c276 100644 (file)
@@ -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);
index f6b82ed3c019e0bc2807aa9c70078888949095aa..e5cb2f7eb6ac37d84b2ad43946d77e8150a88b3a 100644 (file)
@@ -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;