Instance::SMExecute应该删除不必要的参数
原代码路径:
src/algorithm/instance.cpp
bool Instance :: SMExecute(
const uint64_t llInstanceID,
const std::string & sValue,
const bool bIsMyCommit, // 没有被使用
SMCtx * poSMCtx)
{
return m_oSMFac.Execute(m_poConfig->GetMyGroupIdx(), llInstanceID, sValue, poSMCtx);
}
修改后代码:
src/algorithm/instance.h
/*
bool SMExecute(
const uint64_t llInstanceID,
const std::string & sValue,
const bool bIsMyCommit,
SMCtx * poSMCtx);
*/
bool SMExecute(
const uint64_t llInstanceID,
const std::string & sValue,
SMCtx * poSMCtx);
src/algorithm/instance.cpp
/*
bool Instance :: SMExecute(
const uint64_t llInstanceID,
const std::string & sValue,
const bool bIsMyCommit,
SMCtx * poSMCtx)
*/
bool Instance :: SMExecute(
const uint64_t llInstanceID,
const std::string & sValue,
SMCtx * poSMCtx)
{
return m_oSMFac.Execute(m_poConfig->GetMyGroupIdx(), llInstanceID, sValue, poSMCtx);
}
Instance::SMExecute应该删除不必要的参数
原代码路径:
src/algorithm/instance.cpp
修改后代码:
src/algorithm/instance.h
src/algorithm/instance.cpp