diff options
Diffstat (limited to 'src/fs/gnunet-service-fs_drq.c')
-rw-r--r-- | src/fs/gnunet-service-fs_drq.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/fs/gnunet-service-fs_drq.c b/src/fs/gnunet-service-fs_drq.c index ab6c9ad21..b549c6707 100644 --- a/src/fs/gnunet-service-fs_drq.c +++ b/src/fs/gnunet-service-fs_drq.c | |||
@@ -113,10 +113,6 @@ static struct DatastoreRequestQueue *drq_head; | |||
113 | */ | 113 | */ |
114 | static struct DatastoreRequestQueue *drq_tail; | 114 | static struct DatastoreRequestQueue *drq_tail; |
115 | 115 | ||
116 | /** | ||
117 | * Our connection to the datastore. | ||
118 | */ | ||
119 | static struct GNUNET_DATASTORE_Handle *dsh; | ||
120 | 116 | ||
121 | /** | 117 | /** |
122 | * Pointer to the currently actively running request, | 118 | * Pointer to the currently actively running request, |
@@ -295,9 +291,6 @@ shutdown_task (void *cls, | |||
295 | "DRQ shutdown initiated\n"); | 291 | "DRQ shutdown initiated\n"); |
296 | #endif | 292 | #endif |
297 | GNUNET_assert (NULL != dsh); | 293 | GNUNET_assert (NULL != dsh); |
298 | GNUNET_DATASTORE_disconnect (dsh, | ||
299 | GNUNET_NO); | ||
300 | dsh = NULL; | ||
301 | while (NULL != (drq = drq_head)) | 294 | while (NULL != (drq = drq_head)) |
302 | { | 295 | { |
303 | drq_head = drq->next; | 296 | drq_head = drq->next; |
@@ -465,7 +458,6 @@ drq_remove_cont (void *cls, | |||
465 | rc->cont (rc->cont_cls, | 458 | rc->cont (rc->cont_cls, |
466 | success, | 459 | success, |
467 | msg); | 460 | msg); |
468 | GNUNET_DATASTORE_disconnect (rc->rmdsh, GNUNET_NO); | ||
469 | GNUNET_free (rc); | 461 | GNUNET_free (rc); |
470 | } | 462 | } |
471 | 463 | ||
@@ -494,8 +486,6 @@ GNUNET_FS_drq_remove (const GNUNET_HashCode *key, | |||
494 | struct GNUNET_DATASTORE_Handle *rmdsh; | 486 | struct GNUNET_DATASTORE_Handle *rmdsh; |
495 | struct RemoveContext *rc; | 487 | struct RemoveContext *rc; |
496 | 488 | ||
497 | rmdsh = GNUNET_DATASTORE_connect (cfg, | ||
498 | sched); | ||
499 | if (rmdsh == NULL) | 489 | if (rmdsh == NULL) |
500 | { | 490 | { |
501 | GNUNET_break (0); | 491 | GNUNET_break (0); |