long txnId = wireRecord.getCommitTxnId();
if (txnId != 0) {
/* A commit log entry */
MasterTxn ackTxn = repNode.getFeederTxns().getAckTxn(txnId);
if (ackTxn != null) {
ackTxn.stampRepWriteTime();
long messageTransferMs = ackTxn.messageTransferMs();
totalTransferDelay += messageTransferMs;
if (messageTransferMs > TRANSFER_LOGGING_THRESHOLD_MS) {
LoggerUtils.info(logger, threadRepImpl,
(String.format
("Feeder for: %s, Txn: %,d " +
" log to rep stream time %,dms." +
" Total transfer time: %,dms.",
replicaNameIdPair.getName(),
txnId, messageTransferMs,
totalTransferDelay)));
}
}
SyncPolicy replicaSync =
(ackTxn != null) ?
ackTxn.getCommitDurability().getReplicaSync() :
/*
* Replica is catching up. Specify the weakest and leave it
* up to the replica.
*/