protected void append ( AppendRecord record , InputStream in , int length ) throws JournalException { try { conHelper . exec ( insertRevisionStmtSQL , record . getRevision ( ) , getId ( ) , record . getProducerId ( ) , new StreamWrapper ( in , length ) ) ; } catch ( SQLException e ) { String msg = "Unable to append revision " + lockedRevision + "." ; throw new JournalException ( msg , e ) ; } }
We have already saved away the revision for this record .