mirror of
https://github.com/dimitri/pgloader.git
synced 2026-05-04 18:36:12 +02:00
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:
parent
4fed8c5eca
commit
957c975b9b
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user