bbd.d_loaded=true;
bbd.d_lastcheck=0;
bbd.d_status="parsing into memory";
+ bbd.setCtime();
safePutBBDomainInfo(bbd);
}
BB2DomainInfo bbd;
+ bbd.d_kind = DomainInfo::Native;
bbd.d_id = newid;
bbd.d_records = shared_ptr<recordstorage_t >(new recordstorage_t);
bbd.d_name = domain;
bbd.setCheckInterval(getArgAsNum("check-interval"));
bbd.d_filename = filename;
+
return bbd;
}
BB2DomainInfo bbd = createDomainEntry(domain, filename);
bbd.d_kind = DomainInfo::Slave;
bbd.d_masters.push_back(ComboAddress(ip, 53));
+ bbd.setCtime();
safePutBBDomainInfo(bbd);
return true;
}
vector<ComboAddress> d_masters; //!< IP address of the master of this domain
set<string> d_also_notify; //!< IP list of hosts to also notify
LookButDontTouch<recordstorage_t> d_records; //!< the actual records belonging to this domain
- time_t d_ctime; //!< last known ctime of the file on disk
- time_t d_lastcheck; //!< last time domain was checked for freshness
- uint32_t d_lastnotified; //!< Last serial number we notified our slaves of
+ time_t d_ctime{0}; //!< last known ctime of the file on disk
+ time_t d_lastcheck{0}; //!< last time domain was checked for freshness
+ uint32_t d_lastnotified{0}; //!< Last serial number we notified our slaves of
unsigned int d_id; //!< internal id of the domain
mutable bool d_checknow; //!< if this domain has been flagged for a check
bool d_loaded; //!< if a domain is loaded