gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r21134 - gnunet/src/statistics


From: gnunet
Subject: [GNUnet-SVN] r21134 - gnunet/src/statistics
Date: Tue, 24 Apr 2012 15:11:46 +0200

Author: grothoff
Date: 2012-04-24 15:11:46 +0200 (Tue, 24 Apr 2012)
New Revision: 21134

Modified:
   gnunet/src/statistics/statistics_api.c
Log:
-cleaner warning

Modified: gnunet/src/statistics/statistics_api.c
===================================================================
--- gnunet/src/statistics/statistics_api.c      2012-04-24 13:01:06 UTC (rev 
21133)
+++ gnunet/src/statistics/statistics_api.c      2012-04-24 13:11:46 UTC (rev 
21134)
@@ -436,6 +436,9 @@
 static void
 reconnect_later (struct GNUNET_STATISTICS_Handle *h)
 {
+  int loss;
+  struct GNUNET_STATISTICS_GetHandle *gh;
+
   GNUNET_assert (GNUNET_SCHEDULER_NO_TASK == h->backoff_task);
   if (h->do_destroy)
   {
@@ -444,7 +447,13 @@
      * it anymore.
      * Give up and don't sync the rest of the data.
      */
-    GNUNET_break (0);
+    loss = GNUNET_NO;
+    for (gh = h->action_head; NULL != gh; gh = gh->next)
+      if ( (gh->make_persistent) && (gh->type == ACTION_SET) )
+       loss = GNUNET_YES;
+    if (GNUNET_YES == loss)
+      GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+                 _("Could not save some persistent statistics\n"));
     h->do_destroy = GNUNET_NO;
     GNUNET_SCHEDULER_add_continuation (&do_destroy, h,
                                       GNUNET_SCHEDULER_REASON_PREREQ_DONE);
@@ -907,7 +916,7 @@
                                   h->action_tail,
                                   h->current);
     h->do_destroy = GNUNET_YES;
-    if ((h->current != NULL) && (h->th == NULL)&&
+    if ((h->current != NULL) && (h->th == NULL) &&
        (NULL != h->client))
     {
       timeout = GNUNET_TIME_absolute_get_remaining (h->current->timeout);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]