Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nodece committed Feb 21, 2024
1 parent e8b41ad commit 7e2631d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -679,8 +679,8 @@ public Journal(int journalIndex, File journalDirectory, ServerConfiguration conf
this.journalWriteBufferSize = conf.getJournalWriteBufferSizeKB() * KB;
this.syncData = conf.getJournalSyncData();
this.maxBackupJournals = conf.getMaxBackupJournals();
this.forceWriteThread = new ForceWriteThread((__) -> this.interrupt(), conf.getJournalAdaptiveGroupWrites(),
journalStatsLogger);
this.forceWriteThread = new ForceWriteThread((__) -> this.interruptThread(),
conf.getJournalAdaptiveGroupWrites(), journalStatsLogger);
this.maxGroupWaitInNanos = TimeUnit.MILLISECONDS.toNanos(conf.getJournalMaxGroupWaitMSec());
this.bufferedWritesThreshold = conf.getJournalBufferedWritesThreshold();
this.bufferedEntriesThreshold = conf.getJournalBufferedEntriesThreshold();
Expand Down Expand Up @@ -1289,7 +1289,7 @@ public void joinThread() throws InterruptedException {
}
}

public void interrupt() {
public void interruptThread() {
if (thread != null) {
thread.interrupt();
}
Expand Down

0 comments on commit 7e2631d

Please sign in to comment.