Skip to content

Commit 4d9fa1a

Browse files
committed
Initialize
1 parent d010f37 commit 4d9fa1a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

server/src/main/java/org/elasticsearch/indices/recovery/RecoveryTranslogOperationsRequest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import org.elasticsearch.action.index.IndexRequest;
2424
import org.elasticsearch.common.io.stream.StreamInput;
2525
import org.elasticsearch.common.io.stream.StreamOutput;
26+
import org.elasticsearch.index.seqno.RetentionLease;
2627
import org.elasticsearch.index.seqno.RetentionLeases;
2728
import org.elasticsearch.index.seqno.SequenceNumbers;
2829
import org.elasticsearch.index.shard.ShardId;
@@ -110,6 +111,8 @@ public void readFrom(StreamInput in) throws IOException {
110111
}
111112
if (in.getVersion().onOrAfter(Version.V_7_0_0)) {
112113
retentionLeases = new RetentionLeases(in);
114+
} else {
115+
retentionLeases = RetentionLeases.EMPTY;
113116
}
114117
}
115118

0 commit comments

Comments
 (0)