tdb->methods = tdb->transaction->io_methods;
tdb_transaction_unlock(tdb, F_WRLCK);
tdb->methods = tdb->transaction->io_methods;
tdb_transaction_unlock(tdb, F_WRLCK);
/* make sure we know about any file expansions already done by
anyone else */
tdb->methods->oob(tdb, tdb->map_size + 1, true);
/* make sure we know about any file expansions already done by
anyone else */
tdb->methods->oob(tdb, tdb->map_size + 1, true);
fail_allrecord_lock:
tdb_transaction_unlock(tdb, F_WRLCK);
SAFE_FREE(tdb->transaction->blocks);
fail_allrecord_lock:
tdb_transaction_unlock(tdb, F_WRLCK);
SAFE_FREE(tdb->transaction->blocks);
if (!(tdb->flags & TDB_NOSYNC)) {
/* write the recovery data to the end of the file */
if (transaction_setup_recovery(tdb, &tdb->transaction->magic_offset) == -1) {
if (!(tdb->flags & TDB_NOSYNC)) {
/* write the recovery data to the end of the file */
if (transaction_setup_recovery(tdb, &tdb->transaction->magic_offset) == -1) {