/*
- * $Id: cnid_open.c,v 1.45 2003-01-04 19:33:20 jmarcus Exp $
+ * $Id: cnid_open.c,v 1.46 2003-01-04 20:49:33 jmarcus Exp $
*
* Copyright (c) 1999. Adrian Sun (asun@zoology.washington.edu)
* All Rights Reserved. See COPYRIGHT.
* CNIDs 4-16 are reserved according to page 31 of the AFP 3.0 spec so,
* CNID_START begins at 17.
*/
-
+
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif /* HAVE_CONFIG_H */
#ifndef CNID_DB_CDB
struct flock lock;
#endif /* CNID_DB_CDB */
- char path[MAXPATHLEN + 1];
+char path[MAXPATHLEN + 1];
CNID_private *db;
DBT key, data;
DB_TXN *tid;
/*db->db_didname->set_bt_compare(db->db_didname, &compare_unix);*/
#if DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1)
if ((rc = db->db_didname->open(db->db_didname, NULL, DBDIDNAME, NULL,
- DB_HASH, open_flag DB_AUTO_COMMIT, 0666 & ~mask))) {
+ DB_HASH, open_flag DB_AUTO_COMMIT, 0666 & ~mask))) {
#else
if ((rc = db->db_didname->open(db->db_didname, DBDIDNAME, NULL,
DB_HASH, open_flag, 0666 & ~mask))) {
}
else if (ret == DB_RUNRECOVERY) {
/* At this point, we don't care if the transaction aborts
- * successfully or not. */
+ * successfully or not. */
txn_abort(tid);
LOG(log_error, logtype_default, "cnid_open: Error putting new version: %s",
db_strerror(ret));