INSIST that the zone in locked before unlocking

This is the counterpart to the INSIST(!zone->locked) when the zone
is locked.
This commit is contained in:
Mark Andrews
2024-12-06 04:23:31 +00:00
parent 667383587b
commit aa686512df
+1
View File
@@ -193,6 +193,7 @@ typedef struct dns_include dns_include_t;
} while (0)
#define UNLOCK_ZONE(z) \
do { \
INSIST((z)->locked); \
(z)->locked = false; \
UNLOCK(&(z)->lock); \
} while (0)