Changeset 1988

Show
Ignore:
Timestamp:
02/07/11 10:53:01 (2 years ago)
Author:
ahu
Message:

opendbx std fixes

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/modules/opendbxbackend/odbxbackend.cc

    r1948 r1988  
    6161                if( !connectTo( m_hosts[WRITE], WRITE ) ) { throw( AhuException( "Fatal: Connecting to server for writing failed" ) ); } 
    6262        } 
    63         catch( exception& e ) 
     63        catch( std::exception& e ) 
    6464        { 
    6565                L.log( m_myname + " OdbxBackend(): Caught STL exception - " + e.what(),  Logger::Error ); 
     
    156156                while( getRecord( READ ) ); 
    157157        } 
    158         catch( exception& e ) 
    159         { 
    160                 L.log( m_myname + " getDomainInfo: Caught STL exception - " + e.what(),  Logger::Error ); 
     158        catch( std::exception& e ) 
     159        { 
     160                L.log( m_myname + " getDomainInfo: Caught STL std::exception - " + e.what(),  Logger::Error ); 
    161161                return false; 
    162162        } 
     
    221221                while( getRecord( READ ) ); 
    222222        } 
    223         catch( exception& e ) 
     223        catch( std::exception& e ) 
    224224        { 
    225225                L.log( m_myname + " getSOA: Caught STL exception - " + e.what(),  Logger::Error ); 
     
    260260                if( !execStmt( stmtref.c_str(), stmtref.size(), READ ) ) { return false; } 
    261261        } 
    262         catch( exception& e ) 
     262        catch( std::exception& e ) 
    263263        { 
    264264                L.log( m_myname + " list: Caught STL exception - " + e.what(),  Logger::Error ); 
     
    328328                } 
    329329        } 
    330         catch( exception& e ) 
     330        catch( std::exception& e ) 
    331331        { 
    332332                L.log( m_myname + " lookup: Caught STL exception - " + e.what(),  Logger::Error ); 
     
    388388                } 
    389389        } 
    390         catch( exception& e ) 
     390        catch( std::exception& e ) 
    391391        { 
    392392                L.log( m_myname + " get: Caught STL exception - " + e.what(),  Logger::Error ); 
     
    432432                } 
    433433        } 
    434         catch ( exception& e ) 
     434        catch ( std::exception& e ) 
    435435        { 
    436436                L.log( m_myname + " setFresh: Caught STL exception - " + e.what(),  Logger::Error ); 
     
    472472                } 
    473473        } 
    474         catch ( exception& e ) 
     474        catch ( std::exception& e ) 
    475475        { 
    476476                L.log( m_myname + " setNotified: Caught STL exception - " + e.what(),  Logger::Error ); 
     
    506506                while( getRecord( READ ) ); 
    507507        } 
    508         catch ( exception& e ) 
     508        catch ( std::exception& e ) 
    509509        { 
    510510                L.log( m_myname + " isMaster: Caught STL exception - " + e.what(),  Logger::Error ); 
     
    531531                getDomainList( getArg( "sql-infoslaves" ), unfresh, &checkSlave ); 
    532532        } 
    533         catch ( exception& e ) 
     533        catch ( std::exception& e ) 
    534534        { 
    535535                L.log( m_myname + " getUnfreshSlaveInfo: Caught STL exception - " + e.what(),  Logger::Error ); 
     
    553553                getDomainList( getArg( "sql-infomasters" ), updated, &checkMaster ); 
    554554        } 
    555         catch ( exception& e ) 
     555        catch ( std::exception& e ) 
    556556        { 
    557557                L.log( m_myname + " getUpdatedMasters: Caught STL exception - " + e.what(),  Logger::Error ); 
     
    594594        } 
    595595        } 
    596         catch ( exception& e ) 
     596        catch ( std::exception& e ) 
    597597        { 
    598598                L.log( m_myname + " superMasterBackend: Caught STL exception - " + e.what(),  Logger::Error ); 
     
    635635                if( !execStmt( m_buffer, len, WRITE ) ) { return false; } 
    636636        } 
    637         catch ( exception& e ) 
     637        catch ( std::exception& e ) 
    638638        { 
    639639                L.log( m_myname + " createSlaveDomain: Caught STL exception - " + e.what(),  Logger::Error ); 
     
    677677                if( !execStmt( m_buffer, len, WRITE ) ) { return false; } 
    678678        } 
    679         catch ( exception& e ) 
     679        catch ( std::exception& e ) 
    680680        { 
    681681                L.log( m_myname + " feedRecord: Caught STL exception - " + e.what(),  Logger::Error ); 
     
    722722                } 
    723723        } 
    724         catch ( exception& e ) 
     724        catch ( std::exception& e ) 
    725725        { 
    726726                L.log( m_myname + " startTransaction: Caught STL exception - " + e.what(),  Logger::Error ); 
     
    748748                if( !execStmt( stmt.c_str(), stmt.size(), WRITE ) ) { return false; } 
    749749        } 
    750         catch ( exception& e ) 
     750        catch ( std::exception& e ) 
    751751        { 
    752752                L.log( m_myname + " commitTransaction: Caught STL exception - " + e.what(),  Logger::Error ); 
     
    774774                if( !execStmt( stmt.c_str(), stmt.size(), WRITE ) ) { return false; } 
    775775        } 
    776         catch ( exception& e ) 
     776        catch ( std::exception& e ) 
    777777        { 
    778778                L.log( m_myname + " abortTransaction: Caught STL exception - " + e.what(),  Logger::Error );