summaryrefslogtreecommitdiff
path: root/src/exchangedb/plugin_exchangedb_postgres.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-05-22 14:46:23 +0200
committerChristian Grothoff <christian@grothoff.org>2022-05-22 14:46:23 +0200
commit96fb11bed0def1bfb3666b732dd32be253f46c01 (patch)
treeff082f258d4aff4ceb4450672296d9f11b938a4f /src/exchangedb/plugin_exchangedb_postgres.c
parent21bcc5fa0bb4e2c101fc71d5740934d5914eb480 (diff)
downloadexchange-96fb11bed0def1bfb3666b732dd32be253f46c01.tar.gz
exchange-96fb11bed0def1bfb3666b732dd32be253f46c01.tar.bz2
exchange-96fb11bed0def1bfb3666b732dd32be253f46c01.zip
-fix
Diffstat (limited to 'src/exchangedb/plugin_exchangedb_postgres.c')
-rw-r--r--src/exchangedb/plugin_exchangedb_postgres.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c
index 2c113cf19..7a908398d 100644
--- a/src/exchangedb/plugin_exchangedb_postgres.c
+++ b/src/exchangedb/plugin_exchangedb_postgres.c
@@ -3362,8 +3362,8 @@ prepare_statements (struct PostgresClosure *pg)
",end_row"
" FROM work_shards"
" WHERE job_name=$1"
- " AND last_attempt<$2"
" AND completed=FALSE"
+ " AND last_attempt<$2"
" ORDER BY last_attempt ASC"
" LIMIT 1;",
2),
@@ -12626,7 +12626,7 @@ postgres_begin_shard (void *cls,
{
struct PostgresClosure *pg = cls;
- for (unsigned int retries = 0; retries<3; retries++)
+ for (unsigned int retries = 0; retries<10; retries++)
{
if (GNUNET_OK !=
postgres_start (pg,