From 9e0df07a16f5be870ef8dce24892168e4f966a63 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 21 May 2022 01:41:02 +0200 Subject: latest_row_off is exclusive, remove bad comment --- src/exchange/taler-exchange-wirewatch.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/exchange/taler-exchange-wirewatch.c b/src/exchange/taler-exchange-wirewatch.c index 8e4538300..24f92efa6 100644 --- a/src/exchange/taler-exchange-wirewatch.c +++ b/src/exchange/taler-exchange-wirewatch.c @@ -578,7 +578,6 @@ history_cb (void *cls, } if (serial_id < wa->latest_row_off) { - /* we are done with the current shard, commit and stop this iteration! */ GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Serial ID %llu not monotonic (got %llu before). Failing!\n", (unsigned long long) serial_id, @@ -601,7 +600,7 @@ history_cb (void *cls, "Serial ID %llu past shard end at %llu, ending iteration early!\n", (unsigned long long) serial_id, (unsigned long long) wa->shard_end); - wa->latest_row_off = serial_id - 1; + wa->latest_row_off = serial_id; if (wa->started_transaction) { do_commit (wa); -- cgit v1.2.3