/** * Sets the current generation stamp for legacy blocks */ public void setLegacyGenerationStamp(long stamp) { legacyGenerationStamp.setCurrentValue(stamp); }
/** * Gets the current generation stamp for this filesystem */ public void setGenerationStamp(long stamp) { generationStamp.setCurrentValue(stamp); }
void clear() { legacyGenerationStamp.setCurrentValue(GenerationStamp.LAST_RESERVED_STAMP); generationStamp.setCurrentValue(GenerationStamp.LAST_RESERVED_STAMP); getBlockIdGenerator().setCurrentValue(SequentialBlockIdGenerator .LAST_RESERVED_BLOCK_ID); getBlockGroupIdGenerator().setCurrentValue(Long.MIN_VALUE); legacyGenerationStampLimit = HdfsConstants.GRANDFATHER_GENERATION_STAMP; }
/** * Sets the current generation stamp for legacy blocks */ public void setGenerationStampV1(long stamp) { generationStampV1.setCurrentValue(stamp); }
/** * Sets the current generation stamp for legacy blocks */ public void setGenerationStampV1(long stamp) { generationStampV1.setCurrentValue(stamp); }
/** * Gets the current generation stamp for this filesystem */ public void setGenerationStampV2(long stamp) { generationStampV2.setCurrentValue(stamp); }
/** * Gets the current generation stamp for this filesystem */ public void setGenerationStampV2(long stamp) { generationStampV2.setCurrentValue(stamp); }
public void clear() { generationStampV1.setCurrentValue(GenerationStamp.LAST_RESERVED_STAMP); generationStampV2.setCurrentValue(GenerationStamp.LAST_RESERVED_STAMP); getBlockIdGenerator().setCurrentValue(SequentialBlockIdGenerator .LAST_RESERVED_BLOCK_ID); generationStampV1Limit = GenerationStamp.GRANDFATHER_GENERATION_STAMP; } }
public void clear() { generationStampV1.setCurrentValue(GenerationStamp.LAST_RESERVED_STAMP); generationStampV2.setCurrentValue(GenerationStamp.LAST_RESERVED_STAMP); getBlockIdGenerator().setCurrentValue(SequentialBlockIdGenerator .LAST_RESERVED_BLOCK_ID); generationStampV1Limit = GenerationStamp.GRANDFATHER_GENERATION_STAMP; } }