Skip to content

Commit 0d5e6e2

Browse files
committed
Move field
1 parent fb00dd3 commit 0d5e6e2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/src/main/java/org/elasticsearch/index/translog/Translog.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ public class Translog extends AbstractIndexShardComponent implements IndexShardC
127127
private final TranslogConfig config;
128128
private final LongSupplier globalCheckpointSupplier;
129129
private final String translogUUID;
130+
private final AtomicBoolean foldingGeneration = new AtomicBoolean();
130131

131132
/**
132133
* Creates a new Translog instance. This method will create a new transaction log unless the given {@link TranslogGeneration} is
@@ -399,8 +400,6 @@ TranslogWriter createWriter(long fileGeneration) throws IOException {
399400
return newFile;
400401
}
401402

402-
final AtomicBoolean foldingGeneration = new AtomicBoolean();
403-
404403
/**
405404
* Adds an operation to the transaction log.
406405
*

0 commit comments

Comments
 (0)