Skip to content

Commit

Permalink
fix: only commit when there is something to commit
Browse files Browse the repository at this point in the history
  • Loading branch information
abcpro1 committed Oct 4, 2023
1 parent 9269db4 commit 2a8004a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dozer-core/src/forwarder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ impl SourceChannelManager {

fn should_participate_in_commit(&self) -> bool {
self.num_uncommitted_ops >= self.commit_sz
|| self
|| self.num_uncommitted_ops > 0
&& self
.last_commit_instant
.elapsed()
.unwrap_or(self.max_duration_between_commits) // In case of system time drift, we just commit
Expand Down

0 comments on commit 2a8004a

Please sign in to comment.