#include "bacula.h"
#include "filed.h"
-static void realfree(void *p); /* used by tokyo code */
static int dbglvl=200;
typedef struct PrivateCurFile {
} CurFile;
#ifdef USE_TCHDB
+static void realfree(void *p); /* used by tokyo code */
/*
* Update hash element seen=1
0); /* options like compression */
POOLMEM *name = get_pool_memory(PM_MESSAGE);
- make_unique_filename(name, jcr->JobId, "accurate");
+ make_unique_filename(&name, jcr->JobId, "accurate");
if(!tchdbopen(jcr->file_list, name, HDBOWRITER | HDBOCREAT)){
Jmsg(jcr, M_ERROR, 1, _("Can't open accurate hash disk ERR=%s\n"),
bail_out:
/* TODO: clean htable when this function is not reached ? */
if (jcr->file_list) {
- Dmsg2(dbglvl, "Accurate hash size=%lli\n",tchdbfsiz(jcr->file_list));
+ Dmsg1(dbglvl, "Accurate hash size=%lli\n",tchdbfsiz(jcr->file_list));
if(!tchdbclose(jcr->file_list)){
Jmsg(jcr, M_ERROR, 1, _("Can't close accurate hash disk ERR=%s\n"),
tchdberrmsg(tchdbecode(jcr->file_list)));
tchdbdel(jcr->file_list);
POOLMEM *name = get_pool_memory(PM_MESSAGE);
- make_unique_filename(name, jcr->JobId, "accurate");
+ make_unique_filename(&name, jcr->JobId, "accurate");
unlink(name);
free_pool_memory(name);
return true;
}
+#ifdef USE_TCHDB
+
/*
* Tokyo Cabinet library doesn't use smartalloc by default
* results need to be release with real free()
{
free(p);
}
+
+#endif