aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_unindex.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/fs_unindex.c')
-rw-r--r--src/fs/fs_unindex.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/fs/fs_unindex.c b/src/fs/fs_unindex.c
index 38e1073f0..375b833fb 100644
--- a/src/fs/fs_unindex.c
+++ b/src/fs/fs_unindex.c
@@ -31,6 +31,7 @@
31#include "fs.h" 31#include "fs.h"
32#include "fs_tree.h" 32#include "fs_tree.h"
33 33
34#define DEBUG_UNINDEX GNUNET_NO
34 35
35/** 36/**
36 * Function called by the tree encoder to obtain 37 * Function called by the tree encoder to obtain
@@ -172,6 +173,10 @@ process_cont (void *cls,
172 signal_unindex_error (uc); 173 signal_unindex_error (uc);
173 return; 174 return;
174 } 175 }
176#if DEBUG_UNINDEX
177 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
178 "Datastore REMOVE operation succeeded\n");
179#endif
175 GNUNET_FS_tree_encoder_next (uc->tc); 180 GNUNET_FS_tree_encoder_next (uc->tc);
176} 181}
177 182
@@ -214,6 +219,10 @@ unindex_process (void *cls,
214 odb.file_id = uc->file_id; 219 odb.file_id = uc->file_id;
215 data = &odb; 220 data = &odb;
216 } 221 }
222#if DEBUG_UNINDEX
223 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
224 "Sending REMOVE request to DATASTORE service\n");
225#endif
217 GNUNET_DATASTORE_remove (uc->dsh, 226 GNUNET_DATASTORE_remove (uc->dsh,
218 query, 227 query,
219 size, 228 size,
@@ -320,6 +329,10 @@ unindex_finish (void *cls,
320 signal_unindex_error (uc); 329 signal_unindex_error (uc);
321 return; 330 return;
322 } 331 }
332#if DEBUG_UNINDEX
333 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
334 "Sending UNINDEX message to FS service\n");
335#endif
323 req.header.size = htons (sizeof (struct UnindexMessage)); 336 req.header.size = htons (sizeof (struct UnindexMessage));
324 req.header.type = htons (GNUNET_MESSAGE_TYPE_FS_UNINDEX); 337 req.header.type = htons (GNUNET_MESSAGE_TYPE_FS_UNINDEX);
325 req.reserved = 0; 338 req.reserved = 0;