Skip to content
Snippets Groups Projects
  • Ilya Verbin's avatar
    4bf52367
    wal: allow spurious wakeups in wal_write · 4bf52367
    Ilya Verbin authored
    It's possible to wakeup a fiber, which is waiting for WAL write
    completion, using Tarantool C API. This results in an error like:
    ```
    main/118/lua F> Journal result code -1 can't be converted to an error
    ```
    
    This patch introduces a flag, which is set when WAL write is
    finished, that allows fibers to yield until the flag is set.
    
    Closes #6506
    
    NO_DOC=bugfix
    4bf52367
    History
    wal: allow spurious wakeups in wal_write
    Ilya Verbin authored
    It's possible to wakeup a fiber, which is waiting for WAL write
    completion, using Tarantool C API. This results in an error like:
    ```
    main/118/lua F> Journal result code -1 can't be converted to an error
    ```
    
    This patch introduces a flag, which is set when WAL write is
    finished, that allows fibers to yield until the flag is set.
    
    Closes #6506
    
    NO_DOC=bugfix