exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 5666f7a3efab6a04b328c0d7356b00b6b2194e53
parent 0095cbecbdabd9fafaf47b90719decfd2d437d3e
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun, 25 Oct 2026 22:36:29 +0100

fix GC issue: also gc auditor_wire_out_inconsistencies

Diffstat:
Asrc/auditordb/0006-auditor_wire_out_inconsistency.sql | 24++++++++++++++++++++++++
Msrc/auditordb/auditor_do_gc_auditor.sql | 3+++
Msrc/auditordb/meson.build | 1+
3 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/src/auditordb/0006-auditor_wire_out_inconsistency.sql b/src/auditordb/0006-auditor_wire_out_inconsistency.sql @@ -0,0 +1,24 @@ +-- +-- This file is part of TALER +-- Copyright (C) 2026 Taler Systems SA +-- +-- TALER is free software; you can redistribute it and/or modify it under the +-- terms of the GNU General Public License as published by the Free Software +-- Foundation; either version 3, or (at your option) any later version. +-- +-- TALER is distributed in the hope that it will be useful, but WITHOUT ANY +-- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR +-- A PARTICULAR PURPOSE. See the GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License along with +-- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/> +-- + + +-- Add creation_date to auditor_wire_out_inconsistency +-- for auditor_do_gc_auditor(). +ALTER TABLE auditor_wire_out_inconsistency + ADD COLUMN creation_date INT8 NOT NULL + DEFAULT (EXTRACT(EPOCH FROM NOW()) * 1000 * 1000)::BIGINT; +COMMENT ON COLUMN auditor_wire_out_inconsistency.creation_date + IS 'for garbage collection'; diff --git a/src/auditordb/auditor_do_gc_auditor.sql b/src/auditordb/auditor_do_gc_auditor.sql @@ -83,6 +83,9 @@ BEGIN DELETE FROM auditor_wire_format_inconsistency WHERE suppressed AND creation_date < cutoff; + DELETE FROM auditor_wire_out_inconsistency + WHERE suppressed + AND creation_date < cutoff; DELETE FROM auditor_early_aggregations WHERE suppressed AND creation_date < cutoff; diff --git a/src/auditordb/meson.build b/src/auditordb/meson.build @@ -77,6 +77,7 @@ auditor_0006_sql = [ '0006-preamble.sql', '0006-auditor_amount_arithmetic_inconsistency.sql', '0006-auditor_coin_inconsistency.sql', + '0006-auditor_wire_out_inconsistency.sql', 'commit.sql', ]