X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb%2Ftransaction.c;h=9cbbcc9087fe1d441c4a829b7c121d560d57146a;hp=6b539d4045ee6ef2e91f7943387e2492ffa681ad;hb=d665ff828977d76f8ec6ed53e6aab2e6fa124675;hpb=3497b4d49241cb9d05fcfe34091e060bac4cb4f6 diff --git a/ccan/tdb/transaction.c b/ccan/tdb/transaction.c index 6b539d40..9cbbcc90 100644 --- a/ccan/tdb/transaction.c +++ b/ccan/tdb/transaction.c @@ -408,33 +408,12 @@ static int transaction_expand_file(struct tdb_context *tdb, tdb_off_t size, return 0; } -/* - brlock during a transaction - ignore them -*/ -static int transaction_brlock(struct tdb_context *tdb, - int rw_type, tdb_off_t offset, size_t len, - enum tdb_lock_flags flags) -{ - /* FIXME: We actually grab the open lock during a transaction. */ - if (offset == OPEN_LOCK) - return tdb_brlock(tdb, rw_type, offset, len, flags); - return 0; -} - -static int transaction_brunlock(struct tdb_context *tdb, - int rw_type, tdb_off_t offset, size_t len) -{ - return 0; -} - static const struct tdb_methods transaction_methods = { transaction_read, transaction_write, transaction_next_hash_chain, transaction_oob, transaction_expand_file, - transaction_brlock, - transaction_brunlock }; /*