6f968fd825
git-svn-id: svn+ssh://svn.corp.yahoo.com/yahoo/yrl/labs/pnuts/code/logstore@562 8dad8b1f-cf64-0410-95b6-bcf113ffbcfe
35 lines
597 B
C++
35 lines
597 B
C++
|
|
|
|
#include "logstore.h"
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
unlink("storefile.txt");
|
|
unlink("logfile.txt");
|
|
|
|
sync();
|
|
|
|
logtree::init_stasis();
|
|
|
|
int xid = Tbegin();
|
|
|
|
logtable ltable;
|
|
|
|
recordid table_root = ltable.allocTable(xid);
|
|
|
|
Tcommit(xid);
|
|
|
|
//ltable.startTable();
|
|
|
|
// lsmTableHandle<PAGELAYOUT>* h = TlsmTableStart<PAGELAYOUT>(lsmTable, INVALID_COL);
|
|
|
|
xid = Tbegin();
|
|
lladdIterator_t * it = logtreeIterator::open(xid,ltable.get_tree_c2()->get_root_rec() );
|
|
logtreeIterator::close(xid, it);
|
|
Tcommit(xid);
|
|
|
|
logtree::deinit_stasis();
|
|
|
|
|
|
|
|
}
|