From: David VaĊĦek Date: Fri, 22 Nov 2024 08:59:45 +0000 (+0100) Subject: zone: simplify purge macro definitions X-Git-Tag: v3.5.0~208 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a06d8ae602bfced8f4b38aea0d4b3f010e62d371;p=thirdparty%2Fknot-dns.git zone: simplify purge macro definitions --- diff --git a/src/knot/zone/zone.h b/src/knot/zone/zone.h index 8bb5c0967b..c90b61bda3 100644 --- a/src/knot/zone/zone.h +++ b/src/knot/zone/zone.h @@ -72,12 +72,12 @@ typedef enum { PURGE_ZONE_CATALOG = 1 << 7, /*!< Purge the catalog. */ } purge_flag_t; -#define PURGE_ZONE_FULL ~0U /*!< Purge everything possible. */ - /*!< Standard purge (respect C_ZONEFILE_SYNC param). */ -#define PURGE_ZONE_ALL (PURGE_ZONE_FULL ^ PURGE_ZONE_NOSYNC) - /*!< All data. */ -#define PURGE_ZONE_DATA (PURGE_ZONE_TIMERS | PURGE_ZONE_ZONEFILE | PURGE_ZONE_JOURNAL | \ - PURGE_ZONE_KASPDB | PURGE_ZONE_CATALOG) +/*!< All data. */ +#define PURGE_ZONE_DATA (PURGE_ZONE_TIMERS | PURGE_ZONE_ZONEFILE | PURGE_ZONE_JOURNAL | \ + PURGE_ZONE_KASPDB | PURGE_ZONE_CATALOG) + +/*!< Standard purge (respect C_ZONEFILE_SYNC param). */ +#define PURGE_ZONE_ALL (PURGE_ZONE_DATA | PURGE_ZONE_BEST | PURGE_ZONE_LOG) /*! * \brief Structure for holding DNS zone.