bool startTransaction(const string &qname, int id);
bool commitTransaction();
bool abortTransaction();
- bool feedRecord(const DNSResourceRecord &rr);
+ bool feedRecord(const DNSResourceRecord &rr, string *ordername=0);
// SUPERMASTER BACKEND
virtual bool startTransaction(const string &qname, int id);
virtual bool commitTransaction();
virtual bool abortTransaction();
- virtual bool feedRecord(const DNSResourceRecord &rr);
+ virtual bool feedRecord(const DNSResourceRecord &rr, string* ordername=0);
virtual bool getDomainInfo(const string &domain, DomainInfo &di);
virtual bool isMaster(const string &name, const string &ip);
return ok;
}
-bool LUABackend::feedRecord(const DNSResourceRecord &rr) {
+bool LUABackend::feedRecord(const DNSResourceRecord &rr, string *ordername) {
if (f_lua_feedrecord == 0)
return false;
-bool OdbxBackend::feedRecord( const DNSResourceRecord& rr )
+bool OdbxBackend::feedRecord( const DNSResourceRecord& rr, string *ordername )
{
try
{
bool isMaster( const string& domain, const string& ip );
bool getDomainInfo( const string& domain, DomainInfo& di );
- bool feedRecord( const DNSResourceRecord& rr );
+ bool feedRecord( const DNSResourceRecord& rr, string *ordername=0 );
bool createSlaveDomain( const string& ip, const string& domain, const string& account );
bool superMasterBackend( const string& ip, const string& domain, const vector<DNSResourceRecord>& nsset, string* account, DNSBackend** ddb );
}
bool
-OracleBackend::feedRecord (const DNSResourceRecord &rr)
+OracleBackend::feedRecord (const DNSResourceRecord &rr, string *ordername)
{
sword rc;
OCIStmt *stmt;
void setNotified(uint32_t zoneId, uint32_t serial);
bool list(const string &domain, int zoneId);
bool startTransaction(const string &domain, int zoneId);
- bool feedRecord(const DNSResourceRecord &rr);
+ bool feedRecord(const DNSResourceRecord &rr, string* ordername);
bool commitTransaction();
bool abortTransaction();
bool superMasterBackend(const string &ip, const string &domain,
virtual bool startTransaction(const string &qname, int id);
virtual bool commitTransaction();
virtual bool abortTransaction();
- virtual bool feedRecord(const DNSResourceRecord &rr);
+ virtual bool feedRecord(const DNSResourceRecord &rr, string *ordername=0);
virtual void getUnfreshSlaveInfos(vector<DomainInfo>* domains);
virtual void setFresh(uint32_t id);
/* ... */
</listitem>
</varlistentry>
<varlistentry>
- <term>bool feedRecord(const DNSResourceRecord &rr)</term>
+ <term>bool feedRecord(const DNSResourceRecord &rr, string *ordername)</term>
<listitem>
<para>
Insert this record.
virtual bool startTransaction(const string &qname, int id);
virtual bool commitTransaction();
virtual bool abortTransaction();
- virtual bool feedRecord(const DNSResourceRecord &rr);
+ virtual bool feedRecord(const DNSResourceRecord &rr, string *ordername);
virtual bool replaceRRSet(uint32_t domain_id, const string& qname, const QType& qt, const vector<DNSResourceRecord>& rrset)
virtual bool listSubZone(const string &zone, int domain_id);
/* ... */
</listitem>
</varlistentry>
<varlistentry>
- <term>virtual bool feedRecord(const DNSResourceRecord &rr);</term>
+ <term>virtual bool feedRecord(const DNSResourceRecord &rr, string *ordername);</term>
<listitem>
<para>See <xref linkend="rw-backends" />. Please keep in mind that the zone is not empty because <function>startTransaction()</function> was called different.</para>
</listitem>