Ticket #120: 0001-Continue-deletion-instead-of-throwing-an-exception-i.patch

File 0001-Continue-deletion-instead-of-throwing-an-exception-i.patch, 1003 bytes (added by Dimitar Misev, 13 years ago)
  • relblobif/blobtile.pgc

    From bba11c2e13ba53c7d59c954c77490ac489bfd320 Mon Sep 17 00:00:00 2001
    From: Dimitar Misev <misev@rasdaman.com>
    Date: Tue, 13 Mar 2012 17:12:47 +0100
    Subject: [PATCH] Continue deletion instead of throwing an exception in case
     of some data corruption.
    
    ---
     relblobif/blobtile.pgc |    4 ++--
     1 files changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/relblobif/blobtile.pgc b/relblobif/blobtile.pgc
    index 841c983..534b4fe 100644
    a b BLOBTile::kill(const OId& target, unsigned int range)  
    458458                }
    459459                else if (PQntuples(pgResult) != 1)
    460460                {
    461                         LEAVE( "BLOBTile::kill() libpq 'select' did not yield 1 result but " << PQntuples(pgResult) );
     461                        LEAVE( "BLOBTile::kill() data corruption, no blob was found for blob id " << indbmyOId5 << "!" );
    462462                        PQclear( pgResult );
    463                         generateException();
     463      return;
    464464                }
    465465                blobOid = atoi( PQgetvalue( pgResult, 0, 0 ) ); // extract value from result
    466466                PQclear( pgResult );