We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
重试三次,如果都冲突,则返回成功?!
#int Committer :: NewValueGetID(const std::string & sValue, uint64_t & llInstanceID, SMCtx * poSMCtx) { BP->GetCommiterBP()->NewValue();
int iRetryCount = 3; int ret = PaxosTryCommitRet_OK; while(iRetryCount--) { TimeStat oTimeStat; oTimeStat.Point(); ret = NewValueGetIDNoRetry(sValue, llInstanceID, poSMCtx); if (ret != PaxosTryCommitRet_Conflict) { if (ret == 0) { BP->GetCommiterBP()->NewValueCommitOK(oTimeStat.Point()); } else { BP->GetCommiterBP()->NewValueCommitFail(); } break; } BP->GetCommiterBP()->NewValueConflict(); if (poSMCtx != nullptr && poSMCtx->m_iSMID == MASTER_V_SMID) { //master sm not retry break; } } return ret;
}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
重试三次,如果都冲突,则返回成功?!
#int Committer :: NewValueGetID(const std::string & sValue, uint64_t & llInstanceID, SMCtx * poSMCtx)
{
BP->GetCommiterBP()->NewValue();
}
The text was updated successfully, but these errors were encountered: