MCPcopy Create free account
hub / github.com/paypal/junodb / replyStatusToClient

Method replyStatusToClient

cmd/proxy/proc/processor.go:357–370  ·  view source on GitHub ↗
(st proto.OpStatus)

Source from the content-addressed store, hash-verified

355}
356
357func (p *TwoPhaseProcessor) replyStatusToClient(st proto.OpStatus) {
358 if st == proto.OpStatusInconsistent && p.commit.getNumSuccessResponse() > 0 && p.commit.noErrResponse.ssRequest != nil {
359 p.commit.noErrResponse.ssRequest.ssRespOpMsg.SetAsResponse()
360 p.commit.noErrResponse.ssRequest.ssRespOpMsg.SetOpStatus(proto.OpStatusInconsistent)
361 payload := p.commit.noErrResponse.ssRequest.ssRespOpMsg.GetPayload()
362 // follow the sendRepairs
363 if payload != nil {
364 p.commit.noErrResponse.ssRequest.ssRespOpMsg.SetPayload(p.clientRequest.GetPayload())
365 }
366 p.replyToClient(&p.commit.noErrResponse)
367 } else {
368 p.ProcessorBase.replyStatusToClient(st)
369 }
370}
371
372func recordMostUpdatedThan(m1, m2 *proto.OperationalMessage) bool {
373 lmt1 := m1.GetLastModificationTime()

Callers 5

setInitSSRequestMethod · 0.95
sendInitRequestsMethod · 0.95
sendRepairMethod · 0.95
onRepairFailureMethod · 0.95
sendInitRequestsMethod · 0.45

Calls 6

getNumSuccessResponseMethod · 0.80
SetOpStatusMethod · 0.80
GetPayloadMethod · 0.80
replyToClientMethod · 0.80
SetAsResponseMethod · 0.45
SetPayloadMethod · 0.45

Tested by

no test coverage detected