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-02-19 00:59:14 +00:00
|
|
|
diskTreeComponent::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 00:09:38 +00:00
|
|
|
diskTreeComponent::iterator * it = new diskTreeComponent::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-02-19 00:59:14 +00:00
|
|
|
diskTreeComponent::deinit_stasis();
|
2010-01-23 02:13:59 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|