Improve summary reporting of errors.

Not all error paths are counted correctly at this point, this commit
improves the situation in passing. A thorough review should probably be
planned sometime.
This commit is contained in:
Dimitri Fontaine 2018-02-19 22:05:53 +01:00
parent 4fed8c5eca
commit 957c975b9b

View File

@ -55,7 +55,9 @@
;; stop at any failure here, this function doesn't implement any kind
;; of retry behaviour.
(log-message :error "~a" c)
(pomo:execute "ROLLBACK")))
(update-stats :data table :errs 1)
(pomo:execute "ROLLBACK")
(return-from stream-rows-to-copy seconds)))
;; return seconds spent sending data to PostgreSQL
(update-stats :data table :rows rcount :bytes bytes)