diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-08-25 22:54:26 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-08-25 22:54:26 +0200 |
commit | 2e70d578621915d9b32d51f5d91f07e464d34b4a (patch) | |
tree | 3f40d6ff4d615fc69cc8b9e282063e9af3cf6dde /src/auditor/taler-helper-auditor-wire-credit.c | |
parent | 8921862c25692fee473842cf06eca103f3f60aed (diff) |
fix row minor inconsistency table and SQL
Diffstat (limited to 'src/auditor/taler-helper-auditor-wire-credit.c')
-rw-r--r-- | src/auditor/taler-helper-auditor-wire-credit.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/auditor/taler-helper-auditor-wire-credit.c b/src/auditor/taler-helper-auditor-wire-credit.c index d2e598f4a..2cfa4b8ee 100644 --- a/src/auditor/taler-helper-auditor-wire-credit.c +++ b/src/auditor/taler-helper-auditor-wire-credit.c @@ -774,7 +774,7 @@ analyze_credit ( rii->credit_details.execution_date)) { struct TALER_AUDITORDB_RowMinorInconsistencies rmi = { - .row_id = rii->rowid, + .problem_row = rii->rowid, .diagnostic = "execution date mismatch", .row_table = "reserves_in" }; @@ -784,8 +784,9 @@ analyze_credit ( TALER_ARL_adb->cls, &rmi); - if (qs <= 0) + if (qs < 0) { + /* FIXME: this error handling sucks... */ global_qs = qs; GNUNET_break (GNUNET_DB_STATUS_SOFT_ERROR == qs); return false; @@ -820,7 +821,17 @@ history_credit_cb (void *cls, if (! analyze_credit (wa, cd)) - return; + { + if (global_qs < 0) + { + /* FIXME: this error handling sucks, + doesn't retry on SOFT errors, doesn't + set global_ret, etc. */ + GNUNET_SCHEDULER_shutdown (); + return; + } + break; + } } conclude_account (wa); return; |