MCPcopy Create free account
hub / github.com/Tencent/phxpaxos / NewCommit

Method NewCommit

src/algorithm/commitctx.cpp:38–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38void CommitCtx :: NewCommit(std::string * psValue, SMCtx * poSMCtx, const int iTimeoutMs)
39{
40 m_oSerialLock.Lock();
41
42 m_llInstanceID = (uint64_t)-1;
43 m_iCommitRet = -1;
44 m_bIsCommitEnd = false;
45 m_iTimeoutMs = iTimeoutMs;
46
47 m_psValue = psValue;
48 m_poSMCtx = poSMCtx;
49
50 if (psValue != nullptr)
51 {
52 PLGHead("OK, valuesize %zu", psValue->size());
53 }
54
55 m_oSerialLock.UnLock();
56}
57
58
59const bool CommitCtx :: IsNewCommit() const

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected