Skip to content

Instance::SMExecute应该删除不必要的参数 #253

@dyx2025

Description

@dyx2025

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);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions