*/
static unsigned long long quota;
+/**
+ * Should the database be dropped on exit?
+ */
+static int do_drop;
+
/**
* How much space are we using for the cache? (space available for
* insertions that will be instantly reclaimed by discarding less
"Processing `%s' request\n",
"DROP");
#endif
- plugin->api->drop (plugin->api->cls);
+ do_drop = GNUNET_YES;
GNUNET_SERVER_receive_done (client, GNUNET_OK);
}
unload_task (void *cls,
const struct GNUNET_SCHEDULER_TaskContext *tc)
{
+ if (GNUNET_YES == do_drop)
+ plugin->api->drop (plugin->api->cls);
unload_plugin (plugin);
plugin = NULL;
if (filter != NULL)