Skip to content
Snippets Groups Projects
Commit 48a13221 authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

Add a comment.

parent efd4a864
No related branches found
No related tags found
No related merge requests found
...@@ -782,6 +782,13 @@ wal_schedule(ev_watcher *watcher, int event __attribute__((unused))) ...@@ -782,6 +782,13 @@ wal_schedule(ev_watcher *watcher, int event __attribute__((unused)))
(void) tt_pthread_mutex_unlock(&writer->mutex); (void) tt_pthread_mutex_unlock(&writer->mutex);
wal_schedule_queue(&commit); wal_schedule_queue(&commit);
/*
* Perform a cascading abort of all transactions which
* depend on the transaction which failed to get written
* to the write ahead log. Abort transactions
* in reverse order, performing a playback of the
* in-memory database state.
*/
STAILQ_REVERSE(&rollback, wal_write_request, wal_fifo_entry); STAILQ_REVERSE(&rollback, wal_write_request, wal_fifo_entry);
wal_schedule_queue(&rollback); wal_schedule_queue(&rollback);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment