[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r5199 - GNUnet/src/applications/dstore
From: |
gnunet |
Subject: |
[GNUnet-SVN] r5199 - GNUnet/src/applications/dstore |
Date: |
Sun, 1 Jul 2007 04:36:33 -0600 (MDT) |
Author: grothoff
Date: 2007-07-01 04:36:32 -0600 (Sun, 01 Jul 2007)
New Revision: 5199
Modified:
GNUnet/src/applications/dstore/dstore.c
Log:
fix
Modified: GNUnet/src/applications/dstore/dstore.c
===================================================================
--- GNUnet/src/applications/dstore/dstore.c 2007-07-01 10:14:15 UTC (rev
5198)
+++ GNUnet/src/applications/dstore/dstore.c 2007-07-01 10:36:32 UTC (rev
5199)
@@ -542,14 +542,14 @@
quota *= 1024 * 1024;
bloom_name = STRDUP("/tmp/dbloomXXXXXX");
- fd = mkstemp(fn);
- bloom = loadBloomfilter(coreAPI->ectx,
- fn,
- quota / (OVERHEAD + 1024), /* 8 bit per entry in DB,
expect 1k entries */
- 5);
- CLOSE(fd);
-
-
+ fd = mkstemp(bloom_name);
+ if (fd != -1) {
+ bloom = loadBloomfilter(coreAPI->ectx,
+ bloom_name,
+ quota / (OVERHEAD + 1024), /* 8 bit per entry in
DB, expect 1k entries */
+ 5);
+ CLOSE(fd);
+ }
stats = capi->requestService("stats");
if (stats != NULL)
stat_dstore_size = stats->create(gettext_noop("# bytes in dstore"));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r5199 - GNUnet/src/applications/dstore,
gnunet <=