Skip to content

Commit

Permalink
prefer use crc over checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
huan233usc committed Jan 23, 2025
1 parent ab3d62e commit 78bb03c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ protected Tuple2<Protocol, Metadata> loadTableProtocolAndMetadata(
Collections.max(
Arrays.asList(
snapshotHint.map(SnapshotHint::getVersion).orElse(0L) + 1,
logSegment.checkpointVersionOpt.orElse(0L) + 1,
logSegment.checkpointVersionOpt.orElse(0L),
// Only find the CRC within 100 versions.
Math.max(0, snapshotVersion - 100))));
Optional<CRCInfo> crcInfoOpt =
Expand Down

0 comments on commit 78bb03c

Please sign in to comment.