Remove dead write checkpoint method in translog (#29402)

This commit removes a dead method from TranslogWriter.java.
This commit is contained in:
Jason Tedor 2018-04-05 17:54:47 -04:00 committed by GitHub
parent 231fd4eb18
commit e9576806e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 16 deletions

View File

@ -396,22 +396,6 @@ public class TranslogWriter extends BaseTranslogReader implements Closeable {
Channels.readFromFileChannelWithEofException(channel, position, targetBuffer);
}
private static Checkpoint writeCheckpoint(
ChannelFactory channelFactory,
long syncPosition,
int numOperations,
long minSeqNo,
long maxSeqNo,
long globalCheckpoint,
long minTranslogGeneration,
Path translogFile,
long generation) throws IOException {
final Checkpoint checkpoint =
new Checkpoint(syncPosition, numOperations, generation, minSeqNo, maxSeqNo, globalCheckpoint, minTranslogGeneration);
writeCheckpoint(channelFactory, translogFile, checkpoint);
return checkpoint;
}
private static void writeCheckpoint(
final ChannelFactory channelFactory,
final Path translogFile,