Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,10 @@ public void skipTranslogRecovery() {
pendingTranslogRecovery.set(false); // we are good - now we can commit
}

public boolean pendingTranslogRecovery() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, one change, can we make this protected instead? Looks like it is only used by the subclass so just choosing the least visible option.

return pendingTranslogRecovery.get();
}

private void recoverFromTranslogInternal(
TranslogRecoveryRunner translogRecoveryRunner,
long recoverUpToSeqNo,
Expand Down Expand Up @@ -3133,7 +3137,7 @@ protected Map<String, String> getCommitExtraUserData(final long localCheckpoint)
return Collections.emptyMap();
}

final void ensureCanFlush() {
protected void ensureCanFlush() {
// translog recovery happens after the engine is fully constructed.
// If we are in this stage we have to prevent flushes from this
// engine otherwise we might loose documents if the flush succeeds
Expand Down