[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r11515 - gnunet/src/datastore
From: |
gnunet |
Subject: |
[GNUnet-SVN] r11515 - gnunet/src/datastore |
Date: |
Wed, 26 May 2010 09:58:59 +0200 |
Author: grothoff
Date: 2010-05-26 09:58:59 +0200 (Wed, 26 May 2010)
New Revision: 11515
Modified:
gnunet/src/datastore/test_datastore_api.c
Log:
nicer error handling
Modified: gnunet/src/datastore/test_datastore_api.c
===================================================================
--- gnunet/src/datastore/test_datastore_api.c 2010-05-25 16:44:26 UTC (rev
11514)
+++ gnunet/src/datastore/test_datastore_api.c 2010-05-26 07:58:59 UTC (rev
11515)
@@ -291,8 +291,15 @@
if (key == NULL)
{
- GNUNET_assert (crc->phase == RP_GET_MULTIPLE_DONE);
- crc->phase = RP_UPDATE;
+ if (crc->phase != RP_GET_MULTIPLE_DONE)
+ {
+ GNUNET_break (0);
+ crc->phase = RP_ERROR;
+ }
+ else
+ {
+ crc->phase = RP_UPDATE;
+ }
GNUNET_SCHEDULER_add_continuation (crc->sched,
&run_continuation,
crc,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r11515 - gnunet/src/datastore,
gnunet <=