 +   dbenv->set_errfile(dbenv, stderr);
 +   dbenv->set_errpfx(dbenv, "hash");
 +   
-+
-+   if ((ret = dbenv->open(dbenv, working_directory, DB_PRIVATE, 0)) != 0) {
++   int flags = DB_PRIVATE | DB_INIT_LOCK | DB_INIT_MPOOL | DB_CREATE | DB_THREAD;
++   if ((ret = dbenv->open(dbenv, working_directory, flags, 0)) != 0) {
 +      Jmsg(jcr, M_ERROR, 1, _("Can't open initialize hash disk ERR=%i\n"), ret);
 +      dbenv->close(dbenv, 0);
 +      dbenv = NULL;
 +      return false;
 +   }
 +
-+   dbenv->set_flags(dbenv, DB_TXN_NOSYNC | DB_TXN_WRITE_NOSYNC, 1);
++   dbenv->set_flags(dbenv, DB_TXN_NOSYNC, 1);
 +   
 +   if ((ret = db_create(&db, dbenv, 0)) != 0) {
 +      Jmsg(jcr, M_ERROR, 1, _("Can't open accurate hash disk ERR=%i\n"), ret);

Index: src/filed/accurate.c
===================================================================
--- src/filed/accurate.c	(revision 7346)
+++ src/filed/accurate.c	(working copy)
@@ -32,193 +32,310 @@
 
 #include "bacula.h"

    #include <libintl.h>
Index: src/jcr.h
===================================================================
--- src/jcr.h	(rvision 7351)
+++ src/jcr.h	(copie de travail)
@@ -341,12 +341,7 @@
    CRYPTO_CTX crypto;                 /* Crypto ctx */
    DIRRES* director;                  /* Director resource */
