2010-01-23 02:13:59 +00:00
|
|
|
|
|
|
|
|
|
|
|
#include "logstore.h"
|
|
|
|
|
|
|
|
int main(int argc, char **argv)
|
|
|
|
{
|
|
|
|
unlink("storefile.txt");
|
|
|
|
unlink("logfile.txt");
|
|
|
|
|
|
|
|
sync();
|
|
|
|
|
2010-03-09 19:47:12 +00:00
|
|
|
diskTreeComponent::internalNodes::init_stasis();
|
2010-01-23 02:13:59 +00:00
|
|
|
|
|
|
|
int xid = Tbegin();
|
|
|
|
|
|
|
|
logtable ltable;
|
|
|
|
|
2010-02-11 20:04:42 +00:00
|
|
|
recordid table_root = ltable.allocTable(xid);
|
2010-01-23 02:13:59 +00:00
|
|
|
|
|
|
|
Tcommit(xid);
|
|
|
|
|
|
|
|
//ltable.startTable();
|
|
|
|
|
|
|
|
// lsmTableHandle<PAGELAYOUT>* h = TlsmTableStart<PAGELAYOUT>(lsmTable, INVALID_COL);
|
|
|
|
|
|
|
|
xid = Tbegin();
|
2010-03-09 19:47:12 +00:00
|
|
|
diskTreeComponent::internalNodes::iterator * it = new diskTreeComponent::internalNodes::iterator(xid,ltable.get_tree_c2()->get_root_rec() );
|
2010-03-05 22:21:44 +00:00
|
|
|
it->close();
|
|
|
|
delete it;
|
2010-01-23 02:13:59 +00:00
|
|
|
Tcommit(xid);
|
|
|
|
|
2010-03-09 19:47:12 +00:00
|
|
|
diskTreeComponent::internalNodes::deinit_stasis();
|
2010-01-23 02:13:59 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|