[patch] BDB Transactions
Aaron Griffin <aaronmgriffin <at> gmail.com>
2006-02-01 17:49:31 GMT
Hi, I'm not on the list so if you want to respond, please CC me.
The following patch is trivial, but fixes changes in db 4.3.29, which
add transactions to db->stat calls.
I nulled them out, but do whatever you'd like.
For the record, I do not use netatalk, so this is untested. It was
meerly to help users compile this under Archlinux, which supports
'bleeding edge' level packages (thus, the newest BDB).
--- etc/cnid_dbd/dbif.c 2004-12-21 07:36:12.000000000 -0600
+++ etc/cnid_dbd/dbif.c 2006-02-01 11:38:35.000000000 -0600
<at> <at> -514,7 +514,7 <at> <at>
DB_BTREE_STAT *sp;
DB *db = db_table[dbi].db;
- ret = db->stat(db, &sp, 0);
+ ret = db->stat(db, &sp, NULL, 0);
if (ret) {
LOG(log_error, logtype_cnid, "error getting stat infotmation
on database: %s", db_strerror(errno));
--- bin/cnid/cnid_index.c 2005-04-10 07:49:18.000000000 -0500
+++ bin/cnid/cnid_index.c 2006-02-01 11:38:50.000000000 -0600
<at> <at> -274,7 +274,7 <at> <at>
DB_BTREE_STAT *sp;
DB *db = db_table[dbi].db;
- ret = db->stat(db, &sp, 0);
(Continue reading)