]> arthur.barton.de Git - netatalk.git/commitdiff
Log an error message if we cannot open the Berkeley DB environment
authorlenneis <lenneis>
Thu, 15 Jan 2004 19:18:27 +0000 (19:18 +0000)
committerlenneis <lenneis>
Thu, 15 Jan 2004 19:18:27 +0000 (19:18 +0000)
in the cdb backend.

libatalk/cnid/cdb/cnid_cdb_open.c

index 00724baba2f883d934c29197aba1c2dd2b356211..e6fd1e8b2aec9d6a4ac46ddb1b9d69b72adc5d7a 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: cnid_cdb_open.c,v 1.1.4.6 2004-01-10 06:25:18 bfernhomberg Exp $
+ * $Id: cnid_cdb_open.c,v 1.1.4.7 2004-01-15 19:18:27 lenneis Exp $
  *
  * Copyright (c) 1999. Adrian Sun (asun@zoology.washington.edu)
  * All Rights Reserved. See COPYRIGHT.
@@ -269,6 +269,8 @@ struct _cnid_db *cnid_cdb_open(const char *dir, mode_t mask)
 
     /* Open the database environment. */
     if ((rc = db->dbenv->open(db->dbenv, path, DBOPTIONS, 0666 & ~mask)) != 0) {
+       LOG(log_error, logtype_default, "cnid_open: dbenv->open (rw) of %s failed: %s", path, db_strerror(rc));
+       /* FIXME: This should probably go. Even if it worked, any use for a read-only DB? Didier? */
         if (rc == DB_RUNRECOVERY) {
             /* This is the mother of all errors.  We _must_ fail here. */
             LOG(log_error, logtype_default,