private void updateView(ReplicaPushRequest req, @Nullable ObjectId acceptId, ReceiveCommand commitCmd) { if (acceptId != null) { txnAccepted = acceptId; } ObjectId committed = readId(req, commitCmd); if (committed != null) { txnCommitted = committed; } else if (acceptId != null && txnCommitted == null) { // Initialize during first conversation. Map<String, Ref> adv = req.getRefs(); if (adv != null) { Ref refs = adv.get(getSystem().getTxnCommitted()); txnCommitted = getId(refs); } } }
ObjectId acceptId = readId(req, acceptCmd); if (repo != null && acceptCmd != null && acceptCmd.getResult() != OK && req.getException() == null) {
private void updateView(ReplicaPushRequest req, @Nullable ObjectId acceptId, ReceiveCommand commitCmd) { if (acceptId != null) { txnAccepted = acceptId; } ObjectId committed = readId(req, commitCmd); if (committed != null) { txnCommitted = committed; } else if (acceptId != null && txnCommitted == null) { // Initialize during first conversation. Map<String, Ref> adv = req.getRefs(); if (adv != null) { Ref refs = adv.get(getSystem().getTxnCommitted()); txnCommitted = getId(refs); } } }
private void updateView(ReplicaPushRequest req, @Nullable ObjectId acceptId, ReceiveCommand commitCmd) { if (acceptId != null) { txnAccepted = acceptId; } ObjectId committed = readId(req, commitCmd); if (committed != null) { txnCommitted = committed; } else if (acceptId != null && txnCommitted == null) { // Initialize during first conversation. Map<String, Ref> adv = req.getRefs(); if (adv != null) { Ref refs = adv.get(getSystem().getTxnCommitted()); txnCommitted = getId(refs); } } }
ObjectId acceptId = readId(req, acceptCmd); if (repo != null && acceptCmd != null && acceptCmd.getResult() != OK && req.getException() == null) {
ObjectId acceptId = readId(req, acceptCmd); if (repo != null && acceptCmd != null && acceptCmd.getResult() != OK && req.getException() == null) {