]> arthur.barton.de Git - netatalk.git/commitdiff
Disable asynchronous transactions again. This may be contributing to some
authorjmarcus <jmarcus>
Fri, 18 Jan 2002 04:53:48 +0000 (04:53 +0000)
committerjmarcus <jmarcus>
Fri, 18 Jan 2002 04:53:48 +0000 (04:53 +0000)
database instability people are seeing.

libatalk/cnid/cnid_open.c

index be6fe6f8f24c74b32ad49d7c784f8ecdf84ff8a3..4a8f159af1fa08de4b5da1c354232b3d3526319c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: cnid_open.c,v 1.31 2002-01-17 16:19:07 jmarcus Exp $
+ * $Id: cnid_open.c,v 1.32 2002-01-18 04:53:48 jmarcus Exp $
  *
  * Copyright (c) 1999. Adrian Sun (asun@zoology.washington.edu)
  * All Rights Reserved. See COPYRIGHT.
 #define DBOPTIONS    (DB_CREATE | DB_INIT_MPOOL | DB_INIT_LOCK | \
 DB_INIT_LOG | DB_INIT_TXN)
 #else /* DB_VERSION_MINOR < 1 */
-#define DBOPTIONS    (DB_CREATE | DB_INIT_MPOOL | DB_INIT_LOCK | \
-DB_INIT_LOG | DB_INIT_TXN | DB_TXN_NOSYNC)
 /*#define DBOPTIONS    (DB_CREATE | DB_INIT_MPOOL | DB_INIT_LOCK | \
-DB_INIT_LOG | DB_INIT_TXN)*/
+DB_INIT_LOG | DB_INIT_TXN | DB_TXN_NOSYNC)*/
+#define DBOPTIONS    (DB_CREATE | DB_INIT_MPOOL | DB_INIT_LOCK | \
+DB_INIT_LOG | DB_INIT_TXN)
 #endif /* DB_VERSION_MINOR */
 
 /* Let's try and use the youngest lock detector if present.
@@ -310,11 +310,13 @@ void *cnid_open(const char *dir) {
     }
 
 #if DB_VERSION_MINOR > 1
+#if 0
     /* Take care of setting the DB_TXN_NOSYNC flag in db3 > 3.1.x. */
     if ((rc = db->dbenv->set_flags(db->dbenv, DB_TXN_NOSYNC, 1)) != 0) {
         LOG(log_error, logtype_default, "cnid_open: set_flags: %s", db_strerror(rc));
         goto fail_lock;
     }
+#endif
 #endif /* DB_VERSION_MINOR > 1 */
 
     /* Open the database environment. */