Skip to content

Commit 41b3342

Browse files
committed
[Engine] change loadHistoryUUID to protected, and Origin#isFromTranslog() to public
Signed-off-by: jinnyw <jinnyw@uber.com>
1 parent c7503fc commit 41b3342

File tree

1 file changed

+2
-2
lines changed
  • server/src/main/java/org/opensearch/index/engine

1 file changed

+2
-2
lines changed

server/src/main/java/org/opensearch/index/engine/Engine.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ public MergedSegmentTransferTracker getMergedSegmentTransferTracker() {
227227
/**
228228
* Reads the current stored history ID from commit data.
229229
*/
230-
String loadHistoryUUID(Map<String, String> commitData) {
230+
protected String loadHistoryUUID(Map<String, String> commitData) {
231231
final String uuid = commitData.get(HISTORY_UUID_KEY);
232232
if (uuid == null) {
233233
throw new IllegalStateException("commit doesn't contain history uuid");
@@ -1559,7 +1559,7 @@ public boolean isRecovery() {
15591559
return this == PEER_RECOVERY || this == LOCAL_TRANSLOG_RECOVERY;
15601560
}
15611561

1562-
boolean isFromTranslog() {
1562+
public boolean isFromTranslog() {
15631563
return this == LOCAL_TRANSLOG_RECOVERY || this == LOCAL_RESET;
15641564
}
15651565
}

0 commit comments

Comments
 (0)