Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Writer condition variable was used by the writer fiber to be woken up when it is time to send a heartbeat or an ACK. However it is not really needed, because writer fiber pointer is always available in the same structure as writer_cond, and can be used to call fiber_wakeup() directly. Note, fiber_cond_signal() is basically the same fiber_wakeup(). The patch is not just refactoring for nothing. It is a prerequisite for #5100. In this issue it will be needed to wakeup the applier's writer fiber directly on each WAL write from txn.c module. So the writer_cond won't be available. The only usable thing will be txn->fiber, which will be set to applier's writer. Part of #5100
- Loading branch information
Showing
2 changed files
with
4 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters