mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
68df634693
git-svn-id: file:///svn/toku/tokudb@13261 c7de825b-a66e-492c-adef-691d508d4ae1
33 lines
1.6 KiB
C
33 lines
1.6 KiB
C
#ifndef TOKUROLLBACK_H
|
|
#define TOKUROLLBACK_H
|
|
|
|
#ident "$Id: rollback.h 12375 2009-05-28 14:14:47Z yfogel $"
|
|
#ident "Copyright (c) 2007, 2008, 2009 Tokutek Inc. All rights reserved."
|
|
#ident "The technology is licensed by the Massachusetts Institute of Technology, Rutgers State University of New Jersey, and the Research Foundation of State University of New York at Stony Brook under United States of America Serial No. 11/760379 and to the patents and/or patent applications resulting from it."
|
|
|
|
// these routines in rollback.c
|
|
|
|
int toku_rollback_commit(TOKUTXN txn, YIELDF yield, void*yieldv);
|
|
int toku_rollback_abort(TOKUTXN txn, YIELDF yield, void*yieldv);
|
|
void toku_rollback_txn_close (TOKUTXN txn);
|
|
|
|
int toku_commit_rollback_item (TOKUTXN txn, struct roll_entry *item, YIELDF yield, void*yieldv);
|
|
int toku_abort_rollback_item (TOKUTXN txn, struct roll_entry *item, YIELDF yield, void*yieldv);
|
|
|
|
void *toku_malloc_in_rollback(TOKUTXN txn, size_t size);
|
|
void *toku_memdup_in_rollback(TOKUTXN txn, const void *v, size_t len);
|
|
char *toku_strdup_in_rollback(TOKUTXN txn, const char *s);
|
|
int toku_maybe_spill_rollbacks (TOKUTXN txn);
|
|
|
|
int toku_txn_note_brt (TOKUTXN txn, BRT brt);
|
|
int toku_txn_note_swap_brt (BRT live, BRT zombie);
|
|
int toku_txn_note_close_brt (BRT brt);
|
|
int toku_logger_txn_rolltmp_raw_count(TOKUTXN txn, u_int64_t *raw_count);
|
|
|
|
int toku_txn_find_by_xid (BRT brt, TXNID xid, TOKUTXN *txnptr);
|
|
|
|
// these routines in roll.c
|
|
int toku_rollback_fileentries (int fd, TOKUTXN txn, YIELDF yield, void *yieldv);
|
|
int toku_commit_fileentries (int fd, TOKUTXN txn, YIELDF yield,void *yieldv);
|
|
|
|
#endif
|