Addresses #1125 Merged nested transactions from temporary merge branch into main.
Current tests fail (not regressions, they fail as of 13461)
* {{{x1.tdbrun}}}
* {{{test_log(2,3,4,5,6,7,8,9,10).recover}}}
* {{{test-recover(1,2,3).tdbrun}}}
* {{{test1324.tdbrun}}}
ULE_DEBUG disabled (defined to 0) Can be re-enabled for test purposes (set to 1).
refs [t:1125]
Merging into the temp branch (tokudb.main_13461+1125)
{{{svn merge --accept=postpone -r 12527:13461 ../tokudb.1125 ./}}}
Merging into main
{{{svn merge --accept=postpone -r13462:13463 ../tokudb.main_13461+1125/ ./}}}
git-svn-id: file:///svn/toku/tokudb@13464 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:56 -04:00
|
|
|
/* -*- mode: C; c-basic-offset: 4 -*- */
|
|
|
|
#ident "Copyright (c) 2007, 2008 Tokutek Inc. All rights reserved."
|
|
|
|
|
|
|
|
/* Purpose of this file is to provide the world with everything necessary
|
|
|
|
* to use the xids and nothing else.
|
|
|
|
* Internal requirements of the xids logic do not belong here.
|
|
|
|
*
|
|
|
|
* xids is (abstractly) an immutable list of nested transaction ids, accessed only
|
|
|
|
* via the functions in this file.
|
|
|
|
*
|
|
|
|
* See design documentation for nested transactions at
|
|
|
|
* TokuWiki/Imp/TransactionsOverview.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef XIDS_H
|
|
|
|
#define XIDS_H
|
|
|
|
|
|
|
|
#include "x1764.h"
|
|
|
|
|
|
|
|
#include "rbuf.h"
|
|
|
|
#include "wbuf.h"
|
2013-04-16 23:57:57 -04:00
|
|
|
#include "tokuconst.h"
|
Addresses #1125 Merged nested transactions from temporary merge branch into main.
Current tests fail (not regressions, they fail as of 13461)
* {{{x1.tdbrun}}}
* {{{test_log(2,3,4,5,6,7,8,9,10).recover}}}
* {{{test-recover(1,2,3).tdbrun}}}
* {{{test1324.tdbrun}}}
ULE_DEBUG disabled (defined to 0) Can be re-enabled for test purposes (set to 1).
refs [t:1125]
Merging into the temp branch (tokudb.main_13461+1125)
{{{svn merge --accept=postpone -r 12527:13461 ../tokudb.1125 ./}}}
Merging into main
{{{svn merge --accept=postpone -r13462:13463 ../tokudb.main_13461+1125/ ./}}}
git-svn-id: file:///svn/toku/tokudb@13464 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:56 -04:00
|
|
|
//Retrieve an XIDS representing the root transaction.
|
|
|
|
XIDS xids_get_root_xids(void);
|
|
|
|
|
|
|
|
void xids_cpy(XIDS target, XIDS source);
|
|
|
|
|
|
|
|
//Creates an XIDS representing this transaction.
|
|
|
|
//You must pass in an XIDS representing the parent of this transaction.
|
|
|
|
int xids_create_child(XIDS parent_xids, XIDS *xids_p, TXNID this_xid);
|
|
|
|
void xids_create_from_buffer(struct rbuf *rb, XIDS * xids_p);
|
|
|
|
|
|
|
|
void xids_destroy(XIDS *xids_p);
|
|
|
|
|
|
|
|
TXNID xids_get_xid(XIDS xids, u_int8_t index);
|
|
|
|
|
|
|
|
u_int8_t xids_find_index_of_xid(XIDS xids, TXNID target_xid);
|
|
|
|
|
|
|
|
u_int8_t xids_get_num_xids(XIDS xids);
|
|
|
|
|
|
|
|
TXNID xids_get_innermost_xid(XIDS xids);
|
|
|
|
|
|
|
|
// return size in bytes
|
|
|
|
u_int32_t xids_get_size(XIDS xids);
|
|
|
|
|
|
|
|
u_int32_t xids_get_serialize_size(XIDS xids);
|
|
|
|
|
|
|
|
void toku_calc_more_murmur_xids (struct x1764 *mm, XIDS xids);
|
|
|
|
|
|
|
|
unsigned char *xids_get_end_of_array(XIDS xids);
|
|
|
|
|
|
|
|
void wbuf_xids(struct wbuf *wb, XIDS xids);
|
|
|
|
|
2013-04-16 23:57:58 -04:00
|
|
|
void xids_fprintf(FILE* fp, XIDS xids);
|
|
|
|
|
Addresses #1125 Merged nested transactions from temporary merge branch into main.
Current tests fail (not regressions, they fail as of 13461)
* {{{x1.tdbrun}}}
* {{{test_log(2,3,4,5,6,7,8,9,10).recover}}}
* {{{test-recover(1,2,3).tdbrun}}}
* {{{test1324.tdbrun}}}
ULE_DEBUG disabled (defined to 0) Can be re-enabled for test purposes (set to 1).
refs [t:1125]
Merging into the temp branch (tokudb.main_13461+1125)
{{{svn merge --accept=postpone -r 12527:13461 ../tokudb.1125 ./}}}
Merging into main
{{{svn merge --accept=postpone -r13462:13463 ../tokudb.main_13461+1125/ ./}}}
git-svn-id: file:///svn/toku/tokudb@13464 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:56 -04:00
|
|
|
#endif
|