gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r6194 - in GNUnet/src/applications/fs: gap lib


From: gnunet
Subject: [GNUnet-SVN] r6194 - in GNUnet/src/applications/fs: gap lib
Date: Thu, 7 Feb 2008 22:23:31 -0700 (MST)

Author: grothoff
Date: 2008-02-07 22:23:31 -0700 (Thu, 07 Feb 2008)
New Revision: 6194

Modified:
   GNUnet/src/applications/fs/gap/fs.c
   GNUnet/src/applications/fs/lib/fslib.c
   GNUnet/src/applications/fs/lib/fslibtest.c
Log:
fixes

Modified: GNUnet/src/applications/fs/gap/fs.c
===================================================================
--- GNUnet/src/applications/fs/gap/fs.c 2008-02-08 02:19:11 UTC (rev 6193)
+++ GNUnet/src/applications/fs/gap/fs.c 2008-02-08 05:23:31 UTC (rev 6194)
@@ -438,8 +438,9 @@
   rs = (const CS_fs_request_search_MESSAGE *) req;
   type = ntohl (rs->type);
   /* try "fast path" avoiding gap/dht if unique reply is locally available */
-  if (GNUNET_SYSERR == datastore->get (&rs->query[0],
-                                       type, &fast_path_processor, sock))
+  if ( (1 == datastore->get (&rs->query[0],
+                            type, &fast_path_processor, sock)) &&
+       (type == GNUNET_ECRS_BLOCKTYPE_DATA) )
     return GNUNET_OK;
   anonymityLevel = ntohl (rs->anonymityLevel);
   keyCount =

Modified: GNUnet/src/applications/fs/lib/fslib.c
===================================================================
--- GNUnet/src/applications/fs/lib/fslib.c      2008-02-08 02:19:11 UTC (rev 
6193)
+++ GNUnet/src/applications/fs/lib/fslib.c      2008-02-08 05:23:31 UTC (rev 
6194)
@@ -356,6 +356,8 @@
   GNUNET_mutex_lock (ctx->lock);
   ret->next = ctx->handles;
   ctx->handles = ret;
+  GNUNET_client_connection_write (ctx->sock,
+                                 &req->header);
   GNUNET_mutex_unlock (ctx->lock);
   return GNUNET_OK;
 }

Modified: GNUnet/src/applications/fs/lib/fslibtest.c
===================================================================
--- GNUnet/src/applications/fs/lib/fslibtest.c  2008-02-08 02:19:11 UTC (rev 
6193)
+++ GNUnet/src/applications/fs/lib/fslibtest.c  2008-02-08 05:23:31 UTC (rev 
6194)
@@ -29,6 +29,7 @@
 #include "gnunet_protocols.h"
 #include "ecrs_core.h"
 
+
 #define CHECK(a) if (!(a)) { ok = GNUNET_NO; GNUNET_GE_BREAK(NULL, 0); goto 
FAILURE; }
 
 static struct GNUNET_CronManager *cron;
@@ -194,7 +195,7 @@
   return closure.found;
 }
 
-#define START_DAEMON 1
+#define START_DAEMON 0
 
 int
 main (int argc, char *argv[])





reply via email to

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