-do not test for prereq done, almost always set now
authorChristian Grothoff <christian@grothoff.org>
Thu, 19 Apr 2012 15:23:44 +0000 (15:23 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 19 Apr 2012 15:23:44 +0000 (15:23 +0000)
src/fs/perf_gnunet_service_fs_p2p.c
src/fs/test_gnunet_service_fs_migration.c
src/fs/test_gnunet_service_fs_p2p.c
src/include/gnunet_server_lib.h

index 32dcffa72be9b850a984991776db6586a0f2c5f9..7b2c04407966c383df13c542da393400c7a63ac6 100644 (file)
@@ -191,7 +191,7 @@ do_report (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
   char *fancy;
   struct StatMaster *sm;
 
-  if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_PREREQ_DONE))
+  if (0 == (tc->reason & GNUNET_SCHEDULER_REASON_TIMEOUT))
   {
     del = GNUNET_TIME_absolute_get_duration (start_time);
     if (del.rel_value == 0)
index 8b85e5e73db8f6cfa0f743b4364347d8e8afc97a..00aab4f42ee38a113b7d74d3d73e973e6ddf4288 100644 (file)
@@ -66,7 +66,7 @@ do_stop (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
     cc = NULL;
   }
   GNUNET_FS_TEST_daemons_stop (2, daemons);
-  if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_PREREQ_DONE))
+  if (0 == (tc->reason & GNUNET_SCHEDULER_REASON_TIMEOUT))
   {
     del = GNUNET_TIME_absolute_get_duration (start_time);
     if (del.rel_value == 0)
@@ -146,7 +146,7 @@ static void
 do_publish (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
 {
   cc = NULL;
-  if (0 == (tc->reason & GNUNET_SCHEDULER_REASON_PREREQ_DONE))
+  if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_TIMEOUT))
   {
     GNUNET_FS_TEST_daemons_stop (2, daemons);
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
index a853897b2e81275278641c0e46730ba5d70fc3d7..7ca786ed2a97c3dd6924da917b3e2072c715798f 100644 (file)
@@ -62,7 +62,7 @@ do_stop (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
     cc = NULL;
   }
   GNUNET_FS_TEST_daemons_stop (NUM_DAEMONS, daemons);
-  if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_PREREQ_DONE))
+  if (0 == (tc->reason & GNUNET_SCHEDULER_REASON_TIMEOUT))
   {
     del = GNUNET_TIME_absolute_get_duration (start_time);
     if (del.rel_value == 0)
index 2f939f18c884f4c2d0f9be6c83b9a3d1ec2f15be..491e15bcbcf6b17e6f84111fce0e14ca9775e59c 100644 (file)
@@ -223,6 +223,7 @@ GNUNET_SERVER_notify_transmit_ready_cancel (struct GNUNET_SERVER_TransmitHandle
 void
 GNUNET_SERVER_client_persist_ (struct GNUNET_SERVER_Client *client);
 
+
 /**
  * Resume receiving from this client, we are done processing the
  * current request.  This function must be called from within each