diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2011-04-19 21:00:59 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2011-04-19 14:15:22 +0200 |
commit | 36cfa7b79e36d880cdbf24d0769558be44d0edda (patch) | |
tree | 44d8d98a75a90215877ae336fad29bb4d3f30f88 /lib/tdb/common/tdb_private.h | |
parent | cb884186a55c9ef8aca6ee48b16423b3c881e689 (diff) | |
download | samba-36cfa7b79e36d880cdbf24d0769558be44d0edda.tar.gz samba-36cfa7b79e36d880cdbf24d0769558be44d0edda.tar.bz2 samba-36cfa7b79e36d880cdbf24d0769558be44d0edda.zip |
tdb: make sure we skip over recovery area correctly.
If it's really the recovery area, we can trust the rec_len field, and
don't have to go groping for bitpatterns.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date: Tue Apr 19 14:15:22 CEST 2011 on sn-devel-104
Diffstat (limited to 'lib/tdb/common/tdb_private.h')
-rw-r--r-- | lib/tdb/common/tdb_private.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/tdb/common/tdb_private.h b/lib/tdb/common/tdb_private.h index 0186fb9530..140d4ecec5 100644 --- a/lib/tdb/common/tdb_private.h +++ b/lib/tdb/common/tdb_private.h @@ -238,6 +238,10 @@ void tdb_release_transaction_locks(struct tdb_context *tdb); int tdb_transaction_lock(struct tdb_context *tdb, int ltype, enum tdb_lock_flags lockflags); int tdb_transaction_unlock(struct tdb_context *tdb, int ltype); +int tdb_recovery_area(struct tdb_context *tdb, + const struct tdb_methods *methods, + tdb_off_t *recovery_offset, + struct tdb_record *rec); int tdb_allrecord_lock(struct tdb_context *tdb, int ltype, enum tdb_lock_flags flags, bool upgradable); int tdb_allrecord_unlock(struct tdb_context *tdb, int ltype, bool mark_lock); |