summaryrefslogtreecommitdiff
path: root/src/stasis/plugin_anastasis_postgres.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-07-30 13:42:07 +0200
committerChristian Grothoff <christian@grothoff.org>2021-07-30 13:42:12 +0200
commit2daaf1531092836c12b32c1c05261f598575fbb3 (patch)
tree0d508eb7ae8ca3565b4e6968c9cd4407cead7ec8 /src/stasis/plugin_anastasis_postgres.c
parent806c5b1215cfa4141ee651d27955adad88d4e52b (diff)
downloadanastasis-2daaf1531092836c12b32c1c05261f598575fbb3.tar.gz
anastasis-2daaf1531092836c12b32c1c05261f598575fbb3.tar.bz2
anastasis-2daaf1531092836c12b32c1c05261f598575fbb3.zip
-fix minor enum confusions
Diffstat (limited to 'src/stasis/plugin_anastasis_postgres.c')
-rw-r--r--src/stasis/plugin_anastasis_postgres.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/stasis/plugin_anastasis_postgres.c b/src/stasis/plugin_anastasis_postgres.c
index 4aba97c..4d95c8f 100644
--- a/src/stasis/plugin_anastasis_postgres.c
+++ b/src/stasis/plugin_anastasis_postgres.c
@@ -329,6 +329,7 @@ postgres_store_recovery_document (
switch (qs)
{
case GNUNET_DB_STATUS_HARD_ERROR:
+ GNUNET_break (0);
rollback (pg);
return ANASTASIS_DB_STORE_STATUS_HARD_ERROR;
case GNUNET_DB_STATUS_SOFT_ERROR:
@@ -348,8 +349,9 @@ postgres_store_recovery_document (
(*version)++;
break;
default:
+ GNUNET_break (0);
rollback (pg);
- return qs;
+ return ANASTASIS_DB_STORE_STATUS_HARD_ERROR;
}
}
@@ -441,6 +443,7 @@ postgres_store_recovery_document (
switch (qs)
{
case GNUNET_DB_STATUS_HARD_ERROR:
+ GNUNET_break (0);
rollback (pg);
return ANASTASIS_DB_STORE_STATUS_HARD_ERROR;
case GNUNET_DB_STATUS_SOFT_ERROR:
@@ -452,8 +455,9 @@ postgres_store_recovery_document (
case GNUNET_DB_STATUS_SUCCESS_ONE_RESULT:
break;
default:
+ GNUNET_break (0);
rollback (pg);
- return qs;
+ return ANASTASIS_DB_STORE_STATUS_HARD_ERROR;
}
}
}