[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r14234 - gnunet/src/fs
From: |
gnunet |
Subject: |
[GNUnet-SVN] r14234 - gnunet/src/fs |
Date: |
Mon, 24 Jan 2011 13:31:24 +0100 |
Author: grothoff
Date: 2011-01-24 13:31:24 +0100 (Mon, 24 Jan 2011)
New Revision: 14234
Modified:
gnunet/src/fs/fs_publish.c
Log:
fix simulation option
Modified: gnunet/src/fs/fs_publish.c
===================================================================
--- gnunet/src/fs/fs_publish.c 2011-01-24 12:31:06 UTC (rev 14233)
+++ gnunet/src/fs/fs_publish.c 2011-01-24 12:31:24 UTC (rev 14234)
@@ -838,6 +838,16 @@
p->filename,
GNUNET_h2s (res));
#endif
+ if (0 != (sc->options & GNUNET_FS_PUBLISH_OPTION_SIMULATE_ONLY))
+ {
+ p->data.file.file_id = *res;
+ p->data.file.have_hash = GNUNET_YES;
+ p->data.file.index_start_confirmed = GNUNET_YES;
+ GNUNET_FS_file_information_sync_ (p);
+ publish_content (sc);
+ GNUNET_free (fn);
+ return;
+ }
client = GNUNET_CLIENT_connect ("fs",
sc->h->cfg);
if (NULL == client)
@@ -1261,6 +1271,7 @@
ret->h = h;
ret->fi = fi;
ret->namespace = namespace;
+ ret->options = options;
if (namespace != NULL)
{
namespace->rc++;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r14234 - gnunet/src/fs,
gnunet <=