*/
if (syncLatch != null && syncLatch.getCount() > 0) {
syncLatch.countDown();
}
}
OutputWireRecord record = feederSource.getWireRecord
(feederVLSN, heartbeatInterval);
masterStatus.assertSync();
if (record == null) {
/* No new log entry, timed out wait. */
sendHeartbeat();
} else {
Message entry = createMessage(record);
validate(record);
maybeSpray(entry, record);
protocol.write(entry, feederReplicaChannel);
if (commitToNetwork) {
/*
* Ack a commit as soon as it's written to the
* network in this case.
*/
final long txnId = record.getCommitTxnId();
if (txnId != 0) {
repNode.getFeederTxns().noteReplicaAck(txnId);
}
}
sendHeartbeat();