Skip to content

Commit

Permalink
Fix translog upload primary mode condition
Browse files Browse the repository at this point in the history
Signed-off-by: Ashish Singh <ssashish@amazon.com>
  • Loading branch information
ashking94 authored and Sachin Kale committed Jan 13, 2023
1 parent 319ab8a commit 7c4ddc5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ private boolean prepareAndUpload(Long primaryTerm, Long generation) throws IOExc

private boolean upload(Long primaryTerm, Long generation) throws IOException {
boolean primaryMode = primaryModeSupplier.getAsBoolean();
if (primaryMode) {
if (primaryMode == false) {
logger.trace("skipped uploading translog for {} {}", primaryTerm, generation);
// NO-OP
return true;
Expand Down

0 comments on commit 7c4ddc5

Please sign in to comment.