xlog_write_log_records
error = xlog_write_log_records(log, (head_cycle - 1),
error = xlog_write_log_records(log, head_cycle, 0, distance,