578
572
/* write out and point the top of the hash chain at it */
579
573
if (tdb_rec_write(tdb, rec_ptr, &rec) == -1
580
|| tdb->methods->tdb_write(tdb, rec_ptr+sizeof(rec), p, key.dsize+dbuf.dsize)==-1
581
578
|| tdb_ofs_write(tdb, TDB_HASH_TOP(hash), &rec_ptr) == -1) {
582
579
/* Need to tdb_unallocate() here */