/** * Adjust the file pointer in the local meta file so that the last checksum * will be overwritten. */ private void adjustCrcFilePosition() throws IOException { streams.flushDataOut(); if (checksumOut != null) { checksumOut.flush(); } // rollback the position of the meta file datanode.data.adjustCrcChannelPosition(block, streams, checksumSize); }
/** * Adjust the file pointer in the local meta file so that the last checksum * will be overwritten. */ private void adjustCrcFilePosition() throws IOException { if (out != null) { out.flush(); } if (checksumOut != null) { checksumOut.flush(); } // rollback the position of the meta file datanode.data.adjustCrcChannelPosition(block, streams, checksumSize); }
/** * Adjust the file pointer in the local meta file so that the last checksum * will be overwritten. */ private void adjustCrcFilePosition() throws IOException { if (out != null) { out.flush(); } if (checksumOut != null) { checksumOut.flush(); } // rollback the position of the meta file datanode.data.adjustCrcChannelPosition(block, streams, checksumSize); }