mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-28 20:02:00 +03:00
Fix attempt to replicate empty fragments
* Adds method wsrep::transaction::streaming_step() so that there is a single place where streaming context unit counter is udpated. The method also checks that some data has been generated before attempting fragment replication. * Emit a warning if there is an attempt to replicate a fragment and there is no data to replicate.
This commit is contained in:
@ -259,7 +259,7 @@ namespace
|
||||
// Verify initial state
|
||||
BOOST_REQUIRE(tc.active() == false);
|
||||
BOOST_REQUIRE(tc.state() == wsrep::transaction::s_executing);
|
||||
cc.enable_streaming(wsrep::streaming_context::row, 1);
|
||||
cc.enable_streaming(wsrep::streaming_context::statement, 1);
|
||||
}
|
||||
|
||||
wsrep::mock_server_service server_service;
|
||||
|
Reference in New Issue
Block a user