Remove dead write checkpoint method in translog (#29402)
This commit removes a dead method from TranslogWriter.java.
This commit is contained in:
parent
231fd4eb18
commit
e9576806e8
|
@ -396,22 +396,6 @@ public class TranslogWriter extends BaseTranslogReader implements Closeable {
|
||||||
Channels.readFromFileChannelWithEofException(channel, position, targetBuffer);
|
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(
|
private static void writeCheckpoint(
|
||||||
final ChannelFactory channelFactory,
|
final ChannelFactory channelFactory,
|
||||||
final Path translogFile,
|
final Path translogFile,
|
||||||
|
|
Loading…
Reference in New Issue