• Home
  • Raw
  • Download

Lines Matching refs:travlocks

242 	struct tdb_traverse_lock travlocks; /* current traversal locks */  member
809 for (i = &tdb->travlocks; i; i = i->next) in tdb_write_lock_record()
832 for (i = &tdb->travlocks; i; i = i->next) in tdb_unlock_record()
1625 if (tdb->travlocks.next != NULL) { in tdb_transaction_start()
2780 tl->next = tdb->travlocks.next; in tdb_traverse_internal()
2783 tdb->travlocks.next = tl; in tdb_traverse_internal()
2822 tdb->travlocks.next = tl->next; in tdb_traverse_internal()
2887 if (tdb_unlock_record(tdb, tdb->travlocks.off) != 0) in tdb_firstkey()
2889 tdb->travlocks.off = tdb->travlocks.hash = 0; in tdb_firstkey()
2890 tdb->travlocks.lock_rw = F_RDLCK; in tdb_firstkey()
2893 if (tdb_next_lock(tdb, &tdb->travlocks, &rec) <= 0) in tdb_firstkey()
2897 key.dptr =tdb_alloc_read(tdb,tdb->travlocks.off+sizeof(rec),key.dsize); in tdb_firstkey()
2900 if (tdb_unlock(tdb, tdb->travlocks.hash, tdb->travlocks.lock_rw) != 0) in tdb_firstkey()
2914 if (tdb->travlocks.off) { in tdb_nextkey()
2915 if (tdb_lock(tdb,tdb->travlocks.hash,tdb->travlocks.lock_rw)) in tdb_nextkey()
2917 if (tdb_rec_read(tdb, tdb->travlocks.off, &rec) == -1 in tdb_nextkey()
2918 || !(k = tdb_alloc_read(tdb,tdb->travlocks.off+sizeof(rec), in tdb_nextkey()
2922 if (tdb_unlock_record(tdb, tdb->travlocks.off) != 0) { in tdb_nextkey()
2926 if (tdb_unlock(tdb, tdb->travlocks.hash, tdb->travlocks.lock_rw) != 0) { in tdb_nextkey()
2930 tdb->travlocks.off = 0; in tdb_nextkey()
2936 if (!tdb->travlocks.off) { in tdb_nextkey()
2938 …tdb->travlocks.off = tdb_find_lock_hash(tdb, oldkey, tdb->hash_fn(&oldkey), tdb->travlocks.lock_rw… in tdb_nextkey()
2939 if (!tdb->travlocks.off) in tdb_nextkey()
2941 tdb->travlocks.hash = BUCKET(rec.full_hash); in tdb_nextkey()
2942 if (tdb_lock_record(tdb, tdb->travlocks.off) != 0) { in tdb_nextkey()
2947 oldhash = tdb->travlocks.hash; in tdb_nextkey()
2951 if (tdb_next_lock(tdb, &tdb->travlocks, &rec) > 0) { in tdb_nextkey()
2953 key.dptr = tdb_alloc_read(tdb, tdb->travlocks.off+sizeof(rec), in tdb_nextkey()
2956 if (tdb_unlock(tdb, tdb->travlocks.hash, tdb->travlocks.lock_rw) != 0) in tdb_nextkey()
2960 if (tdb_unlock(tdb, BUCKET(oldhash), tdb->travlocks.lock_rw) != 0) in tdb_nextkey()