public synchronized void release(LogConnection connection){
  if (done) {
    logger.warn("Attempt to release connection after connection manager shutdown: " + connection);
    return;
  }
  connection.releaseInternal();
  if (connection.isReadonly()) {
    if (!readConnections.remove(connection))     logger.warn("Unable to free read-only connection: " + connection);
  }
 else {
    if (writeConnection == connection)     writeConnection=null;
 else {
      logger.warn("Unable to free write connection: " + connection);
    }
  }
}

public synchronized void release ( LogConnection connection ) { if ( done ) { logger . warn ( "Attempt to release connection after connection manager shutdown: " + connection ) ; return ; } connection . releaseInternal ( ) ; if ( connection . isReadonly ( ) ) { if ( ! readConnections . remove ( connection ) ) logger . warn ( "Unable to free read-only connection: " + connection ) ; } else { if ( writeConnection == connection ) writeConnection = null ; else { logger . warn ( "Unable to free write connection: " + connection ) ; } } }
releases an existing connection .
