/** * Reads an oplog entry of type Delete * * @param dis * DataInputStream from which the oplog is being read * @param opcode * byte whether the id is short/int/long * @param parent * instance of disk region * @throws IOException */ private void readDelEntry(CountingDataInputStream dis, byte opcode, OplogEntryIdSet deletedIds, DiskStoreImpl parent) throws IOException { int idByteCount = (opcode - OPLOG_DEL_ENTRY_1ID) + 1; // long debugRecoverDelEntryId = this.recoverDelEntryId; long oplogKeyId = getDelEntryId(dis, idByteCount); // long debugOplogKeyId = dis.readLong(); readEndOfRecord(dis); // assert debugRecoverDelEntryId == debugOplogKeyId // : "expected=" + debugOplogKeyId + " actual=" + debugRecoverDelEntryId // + " idByteCount=" + idByteCount // + " delta=" + this.lastDelta; deletedIds.add(oplogKeyId); setHasDeletes(true); this.stats.incRecoveredEntryDestroys(); if (logger.isTraceEnabled(LogMarker.PERSIST_RECOVERY)) { logger.trace(LogMarker.PERSIST_RECOVERY, "readDelEntry oplogKeyId=<{}>", oplogKeyId); } }
setHasDeletes(true); this.stats.incRecoveredEntryDestroys(); if (DiskStoreImpl.TRACE_RECOVERY) {
setHasDeletes(false); deleteDRF(); getOplogSet().removeOplog(getOplogId(), true, addToDrfOnly ? this : null); } else if (!crfOnly && getHasDeletes()) { setHasDeletes(false); deleteDRF(); getOplogSet().removeDrf(this);
setHasDeletes(false); deleteDRF(); getOplogSet().removeOplog(getOplogId(), true, addToDrfOnly ? this : null); } else if (!crfOnly && getHasDeletes()) { setHasDeletes(false); deleteDRF(); getOplogSet().removeDrf(this);
setHasDeletes(true); if (logger.isTraceEnabled(LogMarker.PERSIST_WRITES)) { logger.debug("basicRemove: id=<{}> key=<{}> drId={} oplog#{}", abs(id.getKeyId()), entry.getKey(), dr.getId(),
setHasDeletes(true); if (DiskStoreImpl.TRACE_WRITES) { this.logger.info(LocalizedStrings.DEBUG,