2013-04-16 23:57:48 -04:00
|
|
|
#ifndef _TDB_INTERNAL_H
|
|
|
|
#define _TDB_INTERNAL_H
|
|
|
|
|
|
|
|
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
|
|
|
|
|
2013-04-16 23:58:05 -04:00
|
|
|
#include "toku_list.h"
|
2013-04-16 23:57:48 -04:00
|
|
|
// Included by db.h, defines some internal structures. These structures are inlined in some versions of db.h
|
|
|
|
// the types DB_TXN and so forth have been defined.
|
|
|
|
|
|
|
|
struct simple_dbt {
|
|
|
|
u_int32_t len;
|
|
|
|
void *data;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct __toku_db_txn_internal {
|
|
|
|
//TXNID txnid64; /* A sixty-four bit txn id. */
|
|
|
|
struct tokutxn *tokutxn;
|
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
|
|
|
struct __toku_lth *lth; //Hash table holding list of dictionaries this txn has touched
|
2013-04-16 23:57:48 -04:00
|
|
|
u_int32_t flags;
|
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
|
|
|
DB_TXN *child;
|
2013-04-16 23:58:05 -04:00
|
|
|
struct toku_list dbs_that_must_close_before_abort;
|
2013-04-16 23:57:48 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
struct __toku_dbc_internal {
|
|
|
|
struct brt_cursor *c;
|
|
|
|
DB_TXN *txn;
|
|
|
|
struct simple_dbt skey_s,sval_s;
|
|
|
|
struct simple_dbt *skey,*sval;
|
|
|
|
};
|
|
|
|
|
|
|
|
// end of _TDB_INTERNAL_H:
|
|
|
|
#endif
|