append_end_session(jcr);
} else if (jcr->is_JobType(JT_MIGRATE) || jcr->is_JobType(JT_COPY)) {
jcr->session_opened = true;
- /* send "3000 OK data" now to avoid a dead lock, the other side is also
- * waiting for one. The old peace of code was reading the "3000 OK" reply
+ /*
+ * Send "3000 OK data" now to avoid a dead lock, the other side is also
+ * waiting for one. The old code was reading the "3000 OK" reply
* at the end of the backup (not really appropriate).
- * dedup need duplex communication with the other side and need the
- * "3000 OK" to be out of the socket, and be handle here by the right
- * peace of code */
+ * dedup needs duplex communication with the other side and needs the
+ * "3000 OK" to be read, which is handled here by the code below.
+ */
Dmsg0(215, "send OK_data\n");
jcr->file_bsock->fsend(OK_data);
jcr->is_ok_data_sent = true;
memset(jcr->sd_auth_key, 0, strlen(jcr->sd_auth_key));
if (jcr->authenticated && !job_canceled(jcr)) {
- Dmsg2(800, "Running jid=%d %p\n", jcr->JobId, jcr);
+ Dmsg2(050, "Running jid=%d %p\n", jcr->JobId, jcr);
run_job(jcr); /* Run the job */
}
Dmsg2(800, "Done jid=%d %p\n", jcr->JobId, jcr);