Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问夺主时,BeforePropose起到什么作用? #191

Open
liuliuwd opened this issue Nov 11, 2020 · 0 comments
Open

请问夺主时,BeforePropose起到什么作用? #191

liuliuwd opened this issue Nov 11, 2020 · 0 comments

Comments

@liuliuwd
Copy link

请问LearnMaster方法中,下面这段逻辑什么情况下会成立?
if (oMasterOper.lastversion() != 0
&& llInstanceID > m_llMasterVersion
&& oMasterOper.lastversion() != m_llMasterVersion)
{
BP->GetMasterBP()->MasterSMInconsistent();
PLG1Err("other last version %lu not same to my last version %lu, instanceid %lu",
oMasterOper.lastversion(), m_llMasterVersion, llInstanceID);

    PLG1Err("try to fix, set my master version %lu as other last version %lu, instanceid %lu",
            m_llMasterVersion, oMasterOper.lastversion(), llInstanceID);
    m_llMasterVersion = oMasterOper.lastversion();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant