Changeset 1084

Show
Ignore:
Timestamp:
08/16/07 23:39:35 (3 years ago)
Author:
ahu
Message:

fix case sensitivity in selecting domain type master or slave (horrible!)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/backends/gsql/gsqlbackend.cc

    r1018 r1084  
    1717#include "pdns/logger.hh" 
    1818#include "pdns/arguments.hh" 
    19  
     19#include <boost/algorithm/string.hpp> 
    2020#include <sstream> 
     21using namespace boost; 
    2122 
    2223void GSQLBackend::setNotified(uint32_t domain_id, uint32_t serial) 
     
    9495   
    9596  string type=d_result[0][5]; 
    96   if(type=="SLAVE") { 
     97  if(iequals(type,"SLAVE")) { 
    9798    di.serial=0; 
    9899    try { 
     
    109110    di.kind=DomainInfo::Slave; 
    110111  } 
    111   else if(type=="MASTER") 
     112  else if(iequals(type,"MASTER")) 
    112113    di.kind=DomainInfo::Slave; 
    113114  else