Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions include/wsrep/buffer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

#include <cstddef>
#include <vector>
#include <iterator>

namespace wsrep
{
Expand Down
9 changes: 8 additions & 1 deletion src/server_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,14 @@ static int apply_write_set(wsrep::server_state& server_state,
{
assert(err.size() == 0);
ret = high_priority_service.commit(ws_handle, ws_meta);
ret = ret || (high_priority_service.after_apply(), 0);
// Commit may fail if commit order could not be entered, e.g.
// the node left the primary component. Roll back the
// still-active applier transaction; after_apply() cleans up.
if (ret)
{
high_priority_service.rollback(ws_handle, ws_meta);
}
high_priority_service.after_apply();
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion wsrep-API/v26
Submodule v26 updated 0 files