Skip to content

Commit

Permalink
feat(wal):reduce concurrent conflicts between block write operations …
Browse files Browse the repository at this point in the history
…and poll operations (AutoMQ#1550)
  • Loading branch information
CLFutureX committed Jul 12, 2024
1 parent 0847d72 commit 3cc61aa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ public class SlidingWindowService {
private final WALHeaderFlusher walHeaderFlusher;

/**
* The lock of {@link #pendingBlocks}, {@link #writingBlocks}, {@link #currentBlock}.
* The lock of {@link #pendingBlocks}, {@link #currentBlock}.
*/
private final Lock blockLock = new ReentrantLock();
/**
* The lock of {@link #pendingBlocks}.
* The lock of {@link #pendingBlocks}, {@link #writingBlocks}.
*/
private final Lock pollBlockLock = new ReentrantLock();
/**
Expand Down

0 comments on commit 3cc61aa

Please sign in to comment.