(st proto.OpStatus)
| 355 | } |
| 356 | |
| 357 | func (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 | |
| 372 | func recordMostUpdatedThan(m1, m2 *proto.OperationalMessage) bool { |
| 373 | lmt1 := m1.GetLastModificationTime() |
no test coverage detected