Skip to content

Commit c194078

Browse files
committed
[Engine] make Engine.Result#setTransLogLocation() setTook() freeze() public
1 parent c012a51 commit c194078

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • server/src/main/java/org/opensearch/index/engine

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -561,23 +561,23 @@ public Operation.TYPE getOperationType() {
561561
return operationType;
562562
}
563563

564-
void setTranslogLocation(Translog.Location translogLocation) {
564+
public void setTranslogLocation(Translog.Location translogLocation) {
565565
if (freeze.get() == null) {
566566
this.translogLocation = translogLocation;
567567
} else {
568568
throw new IllegalStateException("result is already frozen");
569569
}
570570
}
571571

572-
void setTook(long took) {
572+
public void setTook(long took) {
573573
if (freeze.get() == null) {
574574
this.took = took;
575575
} else {
576576
throw new IllegalStateException("result is already frozen");
577577
}
578578
}
579579

580-
void freeze() {
580+
public void freeze() {
581581
freeze.set(true);
582582
}
583583

0 commit comments

Comments
 (0)