Skip to content

Commit

Permalink
re apache#3724: tablet transaction log
Browse files Browse the repository at this point in the history
handle non-positive configuration value
  • Loading branch information
ivakegg committed Aug 30, 2023
1 parent 8b6c9d0 commit d11aebe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public TransactionLog(TransactionLog log, DatafileTransaction transaction, int m
this.tabletLog = Arrays.copyOf(log.tabletLog, log.tabletLog.length + 1);
this.tabletLog[log.tabletLog.length] = transaction;
this.finalFiles = applyTransaction(log.finalFiles, transaction);
} else if (maxSize == 0) {
} else if (maxSize <= 0) {
// if the max size is 0, then return a log of 0 size, applying the transaction to the file
// set
this.initialTs = transaction.ts;
Expand Down

0 comments on commit d11aebe

Please sign in to comment.