]> granicus.if.org Git - pdns/commitdiff
bind2: rename createDomain to createDomainEntry
authorChristian Hofstaedtler <christian@hofstaedtler.name>
Sat, 5 Oct 2013 13:38:04 +0000 (15:38 +0200)
committerChristian Hofstaedtler <christian@hofstaedtler.name>
Mon, 14 Oct 2013 13:16:52 +0000 (15:16 +0200)
Bind2Backend::createDomain was hiding DNSBackend::createDomain, but with
completely different functionality. (Bind2Backend::createDomain was there
first.)

pdns/backends/bind/bindbackend2.cc
pdns/backends/bind/bindbackend2.hh

index 5c19bc958bbc88b4ed61b45512fb939816dab0ad..957634cd392c8c83e3239009d930d3b8d73cbef2 100644 (file)
@@ -575,7 +575,7 @@ string Bind2Backend::DLAddDomainHandler(const vector<string>&parts, Utility::pid
   Lock l(&s_state_lock);
 
   Bind2Backend bb2;
-  BB2DomainInfo& bbd = bb2.createDomain(domainname, filename);
+  BB2DomainInfo& bbd = bb2.createDomainEntry(domainname, filename);
 
   bbd.d_filename=filename;
   bbd.d_checknow=true;
@@ -714,7 +714,7 @@ void Bind2Backend::doEmptyNonTerminals(shared_ptr<State> stage, int id, bool nse
 
 void Bind2Backend::loadConfig(string* status)
 {
-  // Interference with createDomain()
+  // Interference with createDomainEntry()
   Lock l(&s_state_lock);
 
   static int domain_id=1;
@@ -1313,7 +1313,7 @@ bool Bind2Backend::superMasterBackend(const string &ip, const string &domain, co
 }
 
 // NEED TO CALL THIS with s_state_lock held!
-BB2DomainInfo &Bind2Backend::createDomain(const string &domain, const string &filename)
+BB2DomainInfo &Bind2Backend::createDomainEntry(const string &domain, const string &filename)
 {
   int newid=1;
   // Find a free zone id nr.  
@@ -1360,7 +1360,7 @@ bool Bind2Backend::createSlaveDomain(const string &ip, const string &domain, con
   c_of << "};" << endl;
   c_of.close();
 
-  BB2DomainInfo &bbd = createDomain(canonic(domain), filename);
+  BB2DomainInfo &bbd = createDomainEntry(canonic(domain), filename);
 
   bbd.d_masters.push_back(ip);
   
index 61b7edf1eadfab4b6f087c92c26eb497f3e0435e..8ed6bafaa503eb791fbea5c469b2edfb051d76f6 100644 (file)
@@ -231,7 +231,7 @@ private:
 
   set<string> alsoNotify; //!< this is used to store the also-notify list of interested peers.
 
-  BB2DomainInfo& createDomain(const string &domain, const string &filename);
+  BB2DomainInfo& createDomainEntry(const string &domain, const string &filename);
 
   int d_transaction_id;
   string d_transaction_tmpname;