Пример #1
0
 /**
  * Updates the sequence number stored in the catalog trep_commit_seqno. If the catalog is disabled
  * we do nothing, which allows us to run unit tests easily without a DBMS present.
  *
  * @throws ReplicatorException Thrown if update is unsuccessful
  */
 public void updateCommitSeqno(THLEvent thlEvent) throws ReplicatorException {
   if (catalog == null) {
     if (logger.isDebugEnabled())
       logger.debug("Seqno update is disabled: seqno=" + thlEvent.getSeqno());
   } else {
     try {
       catalog.updateCommitSeqnoTable(thlEvent);
     } catch (SQLException e) {
       throw new THLException(
           "Unable to update commit sequence number: seqno="
               + thlEvent.getSeqno()
               + " event id="
               + thlEvent.getEventId(),
           e);
     }
   }
 }