|
|
@ -6872,7 +6872,24 @@ bool workmarkers_fill(PGconn *conn) |
|
|
|
} |
|
|
|
} |
|
|
|
row->pps_value = workinfo_pps(wi_item, row->workinfoidend, false); |
|
|
|
row->pps_value = workinfo_pps(wi_item, row->workinfoidend, false); |
|
|
|
|
|
|
|
|
|
|
|
if (dbstatus.newest_workmarker_workinfoid < row->workinfoidend) { |
|
|
|
if (CURRENT(&(row->expirydate)) && |
|
|
|
|
|
|
|
!WMPROCESSED(row->status)) { |
|
|
|
|
|
|
|
LOGWARNING("%s(): WARNING workmarkerid %"PRId64" (%s)" |
|
|
|
|
|
|
|
" wid end %"PRId64" isn't processed! (%s) " |
|
|
|
|
|
|
|
"You should abort ckdb and mark it if it " |
|
|
|
|
|
|
|
"actually has already been processed", |
|
|
|
|
|
|
|
__func__, row->markerid, row->description, |
|
|
|
|
|
|
|
row->workinfoidend, row->status); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Ignore any workmarker that isn't processed, so that the
|
|
|
|
|
|
|
|
* necessary data to process it can be reloaded, if the |
|
|
|
|
|
|
|
* workmarker is after the last processed shift |
|
|
|
|
|
|
|
* Any CURRENT non-processed workmarkers will give a console |
|
|
|
|
|
|
|
* warning (above) */ |
|
|
|
|
|
|
|
if (CURRENT(&(row->expirydate)) && |
|
|
|
|
|
|
|
WMPROCESSED(row->status) && |
|
|
|
|
|
|
|
dbstatus.newest_workmarker_workinfoid < row->workinfoidend) { |
|
|
|
dbstatus.newest_workmarker_workinfoid = row->workinfoidend; |
|
|
|
dbstatus.newest_workmarker_workinfoid = row->workinfoidend; |
|
|
|
if (!wi_item) { |
|
|
|
if (!wi_item) { |
|
|
|
LOGEMERG("%s(): FAILURE workmarkerid %"PRId64 |
|
|
|
LOGEMERG("%s(): FAILURE workmarkerid %"PRId64 |
|
|
|