mBlockStore.removeBlock(blockId); JournalEntry entry = JournalEntry.newBuilder() .setDeleteBlock(DeleteBlockEntry.newBuilder().setBlockId(blockId)).build(); journalContext.append(entry);
if (mBlocks.remove(blockId) != null) { JournalEntry entry = JournalEntry.newBuilder() .setDeleteBlock(DeleteBlockEntry.newBuilder().setBlockId(blockId)).build(); journalContext.append(entry);