|
|
@ -4448,9 +4448,10 @@ bool sharesummaries_to_markersummaries(PGconn *conn, WORKMARKERS *workmarkers, |
|
|
|
char *reason = NULL; |
|
|
|
char *reason = NULL; |
|
|
|
int ss_count, ms_count; |
|
|
|
int ss_count, ms_count; |
|
|
|
char *st = NULL; |
|
|
|
char *st = NULL; |
|
|
|
tv_t add_stt, db_stt, db_fin, lck_stt, lck_got, lck_fin; |
|
|
|
tv_t add_stt, add_fin, db_stt, db_fin, lck_stt, lck_got, lck_fin; |
|
|
|
|
|
|
|
|
|
|
|
DATE_ZERO(&add_stt); |
|
|
|
DATE_ZERO(&add_stt); |
|
|
|
|
|
|
|
DATE_ZERO(&add_fin); |
|
|
|
DATE_ZERO(&db_stt); |
|
|
|
DATE_ZERO(&db_stt); |
|
|
|
DATE_ZERO(&db_fin); |
|
|
|
DATE_ZERO(&db_fin); |
|
|
|
|
|
|
|
|
|
|
@ -4500,7 +4501,7 @@ bool sharesummaries_to_markersummaries(PGconn *conn, WORKMARKERS *workmarkers, |
|
|
|
* so this will continue and regenerate the markersummaries |
|
|
|
* so this will continue and regenerate the markersummaries |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
reason = "markersummaries already exist"; |
|
|
|
reason = "markersummaries already exist"; |
|
|
|
setnow(&add_stt); |
|
|
|
setnow(&add_fin); |
|
|
|
goto flail; |
|
|
|
goto flail; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -4600,6 +4601,7 @@ bool sharesummaries_to_markersummaries(PGconn *conn, WORKMARKERS *workmarkers, |
|
|
|
|
|
|
|
|
|
|
|
ss_item = ss_prev; |
|
|
|
ss_item = ss_prev; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
setnow(&add_fin); |
|
|
|
|
|
|
|
|
|
|
|
setnow(&db_stt); |
|
|
|
setnow(&db_stt); |
|
|
|
if (conn == NULL) { |
|
|
|
if (conn == NULL) { |
|
|
@ -4649,10 +4651,11 @@ flail: |
|
|
|
|
|
|
|
|
|
|
|
if (reason) { |
|
|
|
if (reason) { |
|
|
|
// already displayed the full workmarkers detail at the top
|
|
|
|
// already displayed the full workmarkers detail at the top
|
|
|
|
LOGERR("%s() %s: workmarkers %"PRId64"/%s/%s db %.3fs", |
|
|
|
LOGERR("%s() %s: workmarkers %"PRId64"/%s/%s add=%.3fs " |
|
|
|
|
|
|
|
"db=%.3fs", |
|
|
|
shortname, reason, workmarkers->markerid, |
|
|
|
shortname, reason, workmarkers->markerid, |
|
|
|
workmarkers->description, workmarkers->status, |
|
|
|
workmarkers->description, workmarkers->status, |
|
|
|
tvdiff(&db_fin, &db_stt)); |
|
|
|
tvdiff(&add_fin, &add_stt), tvdiff(&db_fin, &db_stt)); |
|
|
|
|
|
|
|
|
|
|
|
ok = false; |
|
|
|
ok = false; |
|
|
|
} |
|
|
|
} |
|
|
@ -4737,14 +4740,14 @@ flail: |
|
|
|
|
|
|
|
|
|
|
|
LOGWARNING("%s() Processed: %d ms %d ss %"PRId64" shares " |
|
|
|
LOGWARNING("%s() Processed: %d ms %d ss %"PRId64" shares " |
|
|
|
"%"PRId64" diff for workmarkers %"PRId64"/%s/" |
|
|
|
"%"PRId64" diff for workmarkers %"PRId64"/%s/" |
|
|
|
"End %"PRId64"/Stt %"PRId64"/%s/%s add %.3f " |
|
|
|
"End %"PRId64"/Stt %"PRId64"/%s/%s add=%.3f " |
|
|
|
"db %.3fs lck %.3fs+%.3f", |
|
|
|
"db=%.3fs lck=%.3fs+%.3f", |
|
|
|
shortname, ms_count, ss_count, shareacc, diffacc, |
|
|
|
shortname, ms_count, ss_count, shareacc, diffacc, |
|
|
|
workmarkers->markerid, workmarkers->poolinstance, |
|
|
|
workmarkers->markerid, workmarkers->poolinstance, |
|
|
|
workmarkers->workinfoidend, |
|
|
|
workmarkers->workinfoidend, |
|
|
|
workmarkers->workinfoidstart, |
|
|
|
workmarkers->workinfoidstart, |
|
|
|
workmarkers->description, |
|
|
|
workmarkers->description, |
|
|
|
workmarkers->status, tvdiff(&db_stt, &add_stt), |
|
|
|
workmarkers->status, tvdiff(&add_fin, &add_stt), |
|
|
|
tvdiff(&db_fin, &db_stt), |
|
|
|
tvdiff(&db_fin, &db_stt), |
|
|
|
tvdiff(&lck_got, &lck_stt), |
|
|
|
tvdiff(&lck_got, &lck_stt), |
|
|
|
tvdiff(&lck_fin, &lck_got)); |
|
|
|
tvdiff(&lck_fin, &lck_got)); |
|
|
|