protected void signalError(WriteBatch wb, Throwable t) { if (wb != null) { if (t instanceof IOException) { wb.exception.set((IOException) t); // revert sync batch increment such that next write is contiguous if (syncBatch(wb.writes)) { wb.dataFile.decrementLength(wb.size); } } else { wb.exception.set(IOExceptionSupport.create(t)); } signalDone(wb); } }
protected void signalError(WriteBatch wb, Throwable t) { if (wb != null) { if (t instanceof IOException) { wb.exception.set((IOException) t); // revert sync batch increment such that next write is contiguous if (syncBatch(wb.writes)) { wb.dataFile.decrementLength(wb.size); } } else { wb.exception.set(IOExceptionSupport.create(t)); } signalDone(wb); } }
protected void signalError(WriteBatch wb, Throwable t) { if (wb != null) { if (t instanceof IOException) { wb.exception.set((IOException) t); // revert sync batch increment such that next write is contiguous if (syncBatch(wb.writes)) { wb.dataFile.decrementLength(wb.size); } } else { wb.exception.set(IOExceptionSupport.create(t)); } signalDone(wb); } }
protected void signalError(WriteBatch wb, Throwable t) { if (wb != null) { if (t instanceof IOException) { wb.exception.set((IOException) t); // revert sync batch increment such that next write is contiguous if (syncBatch(wb.writes)) { wb.dataFile.decrementLength(wb.size); } } else { wb.exception.set(IOExceptionSupport.create(t)); } signalDone(wb); } }