Changeset 1627

Show
Ignore:
Timestamp:
06/14/08 16:59:13 (7 months ago)
Author:
kindlund
Message:

If we encounter any type of collisions during URL insert operations, then we know that 1) the URL is already inserted into the DB and 2) a host system has already handled the URL. Therefore, inserting it again into the DB isn't that big of a deal, so abort when any collisions occur.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • hive/trunk/data_webapp/app/controllers/hc_database_controller.rb

    r1625 r1627  
    117117            return 
    118118          end 
    119           logger.warn "insert_pending_url(): Collision on URL: (" + args[:url].to_s + ") - retrying insert." 
     119          # XXX: Not ideal. 
     120          #logger.warn "insert_pending_url(): Collision on URL: (" + args[:url].to_s + ") - retrying insert." 
     121          logger.warn "insert_pending_url(): Collision on URL: (" + args[:url].to_s + ") - aborting insert." 
     122          return 
    120123        end 
    121124      end