-#ifdef USE_TCHDB
-
-static bool accurate_mark_file_as_seen(JCR *jcr, CurFile *elt)
-{
- bool ret=true;
-
- elt->seen = 1;
- if (!tchdbputasync(jcr->file_list,
- elt->fname, strlen(elt->fname)+1,
- elt, sizeof(CurFile)))
- {
- Dmsg1(2, "can't update <%s>\n", elt->fname);
- ret = false; /* TODO: add error message */
- }
-
- return ret;
-}
-
-static bool accurate_lookup(JCR *jcr, char *fname, CurFile *ret)
-{
- bool found=false;
- ret->seen = 0;
-
- if (tchdbget3(jcr->file_list,
- fname, strlen(fname)+1,
- ret, sizeof(CurFile)) != -1)
- {
- found = true;
- ret->fname = fname;
- }
-
- if (found) {
- Dmsg1(2, "lookup <%s> ok\n", fname);
- }
-
- return found;
-}
-
-static bool accurate_init(JCR *jcr, int nbfile)
-{
- jcr->file_list = tchdbnew();
- tchdbsetcache(jcr->file_list, 300000);
- tchdbtune(jcr->file_list,
- nbfile, /* nb bucket 0.5n to 4n */
- 6, /* size of element 2^x */
- 16,
- 0); /* options like compression */
- /* TODO: make accurate file unique */
- POOLMEM *name = get_pool_memory(PM_MESSAGE);
- make_unique_filename(name, jcr->JobId, "accurate");
-
- if(!tchdbopen(jcr->file_list, name, HDBOWRITER | HDBOCREAT)){
- /* TODO: handle error creation */
- //ecode = tchdbecode(hdb);
- //fprintf(stderr, "open error: %s\n", tchdberrmsg(ecode));
- }
- free_pool_memory(name);
- return true;
-}
-
-
-bool accurate_send_deleted_list(JCR *jcr)