int fd = mkstemp(&d_transaction_tmpname.at(0));
if (fd == -1) {
throw DBException("Unable to create a unique temporary zonefile '" + d_transaction_tmpname + "': " + stringerror());
- return false;
}
d_of = std::make_unique<ofstream>(d_transaction_tmpname);
}
catch (SSqlException &e) {
throw PDNSException("GSQLBackend unable to delete empty non-terminal records from domain_id "+itoa(domain_id)+": "+e.txtReason());
- return false;
}
}
else
}
catch (SSqlException &e) {
throw PDNSException("GSQLBackend unable to delete empty non-terminal rr '"+qname.toLogString()+"' from domain_id "+itoa(domain_id)+": "+e.txtReason());
- return false;
}
}
}
}
catch (SSqlException &e) {
throw PDNSException("GSQLBackend unable to insert empty non-terminal rr '"+qname.toLogString()+"' in domain_id "+itoa(domain_id)+": "+e.txtReason());
- return false;
}
}
id = -2;
return true;
}
-
- return false;
}
bool GSQLBackend::activateDomainKey(const DNSName& name, unsigned int id)
catch (SSqlException &e) {
throw PDNSException("GSQLBackend unable to search for records with pattern '" + pattern + "' (escaped pattern '" + escaped_pattern + "'): "+e.txtReason());
}
-
- return false;
}
bool GSQLBackend::searchComments(const string &pattern, int maxResults, vector<Comment>& result)
catch (SSqlException &e) {
throw PDNSException("GSQLBackend unable to search for comments with pattern '" + pattern + "' (escaped pattern '" + escaped_pattern + "'): "+e.txtReason());
}
-
- return false;
}
void GSQLBackend::extractRecord(SSqlStatement::row_t& row, DNSResourceRecord& r)
catch(ResolverException &re) {
throw ResolverException(re.reason+" from "+to.toLogString());
}
- return -1;
}
int Resolver::resolve(const ComboAddress& ipport, const DNSName &domain, int type, Resolver::res_t* res) {