Internal reshuffle which makes things shorter and neater.
"tdb_allrecord_upgrade failed");
}
"tdb_allrecord_upgrade failed");
}
-static struct tdb_lock_type *find_nestlock(struct tdb_context *tdb,
- tdb_off_t offset)
+static struct tdb_lock *find_nestlock(struct tdb_context *tdb, tdb_off_t offset)
tdb_off_t offset, int ltype,
enum tdb_lock_flags flags)
{
tdb_off_t offset, int ltype,
enum tdb_lock_flags flags)
{
- struct tdb_lock_type *new_lck;
+ struct tdb_lock *new_lck;
enum TDB_ERROR ecode;
if (offset > (TDB_HASH_LOCK_START + TDB_HASH_LOCK_RANGE
enum TDB_ERROR ecode;
if (offset > (TDB_HASH_LOCK_START + TDB_HASH_LOCK_RANGE
"tdb_nest_lock: already have a hash lock?");
}
"tdb_nest_lock: already have a hash lock?");
}
- new_lck = (struct tdb_lock_type *)realloc(
+ new_lck = (struct tdb_lock *)realloc(
tdb->file->lockrecs,
sizeof(*tdb->file->lockrecs) * (tdb->file->num_lockrecs+1));
if (new_lck == NULL) {
tdb->file->lockrecs,
sizeof(*tdb->file->lockrecs) * (tdb->file->num_lockrecs+1));
if (new_lck == NULL) {
static enum TDB_ERROR tdb_nest_unlock(struct tdb_context *tdb,
tdb_off_t off, int ltype)
{
static enum TDB_ERROR tdb_nest_unlock(struct tdb_context *tdb,
tdb_off_t off, int ltype)
{
- struct tdb_lock_type *lck;
enum TDB_ERROR ecode;
if (tdb->flags & TDB_NOLOCK)
enum TDB_ERROR ecode;
if (tdb->flags & TDB_NOLOCK)
uint32_t off;
uint32_t count;
uint32_t ltype;
uint32_t off;
uint32_t count;
uint32_t ltype;
int fd;
/* Lock information */
int fd;
/* Lock information */
- struct tdb_lock_type allrecord_lock;
+ struct tdb_lock allrecord_lock;
- struct tdb_lock_type *lockrecs;
+ struct tdb_lock *lockrecs;
/* Identity of this file. */
dev_t device;
/* Identity of this file. */
dev_t device;