gpAux/extensions/gps3ext/src/gpwriter.cpp
// invoked by s3_export(), need to be exception safe
invoked by s3_export(), need to be exception safe
invoked by s3_export () need to be exception safe
bool writer_cleanup(GPWriter** writer) {
    bool result = true;
    try {
        if (*writer) {
            (*writer)->close();
            delete *writer;
            *writer = NULL;
        } else {
            result = false;
        }
    } catch (std::exception& e) {
        S3ERROR("writer_cleanup caught an exception: %s", e.what());
        s3extErrorMessage = e.what();
        result = false;
    }
    return result;
}
bool writer_cleanup ( GPWriter * * writer ) { bool result = true ; try { if ( * writer ) { ( * writer ) -> close ( ) ; delete * writer ; * writer = NULL ; } else { result = false ; } } catch ( std :: exception & e ) { S3ERROR ( " " , e . what ( ) ) ; s3extErrorMessage = e . what ( ) ; result = false ; } return result ; }
invoked by s3_export(), need to be exception safe
invoked by s3_export () need to be exception safe