mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-30 07:23:07 +03:00
Fixed unit test failures caused by refactoring.
This commit is contained in:
@ -71,10 +71,10 @@ namespace wsrep
|
||||
{ return do_2pc_; }
|
||||
|
||||
bool interrupted() const WSREP_OVERRIDE
|
||||
{ return false; }
|
||||
{ return killed_before_certify_; }
|
||||
|
||||
void reset_globals() WSREP_OVERRIDE { }
|
||||
void emergency_shutdown() WSREP_OVERRIDE { }
|
||||
void emergency_shutdown() WSREP_OVERRIDE { ++aborts_; }
|
||||
|
||||
int append_fragment(const wsrep::transaction_context&,
|
||||
int, const wsrep::const_buffer&) WSREP_OVERRIDE
|
||||
@ -85,10 +85,11 @@ namespace wsrep
|
||||
WSREP_OVERRIDE { }
|
||||
|
||||
enum wsrep::provider::status
|
||||
replay(wsrep::transaction_context& tc) WSREP_OVERRIDE
|
||||
replay(wsrep::client_context& client_context,
|
||||
wsrep::transaction_context& tc) WSREP_OVERRIDE
|
||||
{
|
||||
enum wsrep::provider::status ret(
|
||||
provider_.replay(tc.ws_handle(), this));
|
||||
provider_.replay(tc.ws_handle(), &client_context));
|
||||
++replays_;
|
||||
return ret;
|
||||
}
|
||||
@ -140,9 +141,6 @@ namespace wsrep
|
||||
return client_context.append_data(data);
|
||||
}
|
||||
|
||||
bool killed() const WSREP_OVERRIDE { return killed_before_certify_; }
|
||||
void abort() WSREP_OVERRIDE { ++aborts_; }
|
||||
|
||||
void store_globals() WSREP_OVERRIDE { }
|
||||
|
||||
void debug_sync(wsrep::client_context& client_context,
|
||||
|
@ -2,8 +2,8 @@
|
||||
// Copyright (C) 2018 Codership Oy <info@codership.com>
|
||||
//
|
||||
|
||||
#ifndef WSREP_FAKE_PROVIDER_HPP
|
||||
#define WSREP_FAKE_PROVIDER_HPP
|
||||
#ifndef WSREP_MOCK_PROVIDER_HPP
|
||||
#define WSREP_MOCK_PROVIDER_HPP
|
||||
|
||||
#include "wsrep/provider.hpp"
|
||||
#include "wsrep/logger.hpp"
|
||||
@ -154,8 +154,8 @@ namespace wsrep
|
||||
|
||||
enum wsrep::provider::status replay(wsrep::ws_handle&, void* ctx)
|
||||
{
|
||||
wsrep::mock_client_context& cc(
|
||||
*static_cast<wsrep::mock_client_context*>(ctx));
|
||||
wsrep::client_context& cc(
|
||||
*static_cast<wsrep::client_context*>(ctx));
|
||||
wsrep::client_applier_mode applier_mode(cc);
|
||||
const wsrep::transaction_context& tc(cc.transaction());
|
||||
wsrep::ws_meta ws_meta;
|
||||
@ -246,4 +246,4 @@ namespace wsrep
|
||||
}
|
||||
|
||||
|
||||
#endif // WSREP_FAKE_PROVIDER_HPP
|
||||
#endif // WSREP_MOCK_PROVIDER_HPP
|
||||
|
@ -2,8 +2,8 @@
|
||||
// Copyright (C) 2018 Codership Oy <info@codership.com>
|
||||
//
|
||||
|
||||
#ifndef WSREP_FAKE_SERVER_CONTEXT_HPP
|
||||
#define WSREP_FAKE_SERVER_CONTEXT_HPP
|
||||
#ifndef WSREP_MOCK_SERVER_CONTEXT_HPP
|
||||
#define WSREP_MOCK_SERVER_CONTEXT_HPP
|
||||
|
||||
#include "wsrep/server_context.hpp"
|
||||
#include "mock_client_context.hpp"
|
||||
@ -78,4 +78,4 @@ namespace wsrep
|
||||
};
|
||||
}
|
||||
|
||||
#endif // WSREP_FAKE_SERVER_CONTEXT_HPP
|
||||
#endif // WSREP_MOCK_SERVER_CONTEXT_HPP
|
||||
|
Reference in New Issue
Block a user