// Release memory for batch transaction. static void batch_transaction_done(batch_transaction* btr, bool force_close) { if (btr->fd_h) { as_end_of_transaction(btr->fd_h, force_close); btr->fd_h = 0; } if (btr->digests) { cf_free(btr->digests); btr->digests = 0; } if (btr->binlist) { cf_vector_destroy(btr->binlist); btr->binlist = 0; } }
void as_end_of_transaction_force_close(as_file_handle *proto_fd_h) { as_end_of_transaction(proto_fd_h, true); }
void as_end_of_transaction_ok(as_file_handle *proto_fd_h) { as_end_of_transaction(proto_fd_h, false); }