fix 3 of 4 unit test regressions
git-svn-id: svn+ssh://svn.corp.yahoo.com/yahoo/yrl/labs/pnuts/code/logstore@628 8dad8b1f-cf64-0410-95b6-bcf113ffbcfe
This commit is contained in:
parent
cb614dff1b
commit
52dcae159e
3 changed files with 9 additions and 13 deletions
|
@ -55,14 +55,13 @@ void insertProbeIter(size_t NUM_ENTRIES)
|
|||
recordid table_root = ltable.allocTable(xid);
|
||||
|
||||
Tcommit(xid);
|
||||
|
||||
xid = Tbegin();
|
||||
|
||||
writelock(ltable.header_lock,0);
|
||||
int lindex = mscheduler.addlogtable(<able);
|
||||
ltable.setMergeData(mscheduler.getMergeData(lindex));
|
||||
|
||||
mscheduler.startlogtable(lindex);
|
||||
|
||||
mscheduler.startlogtable(lindex);
|
||||
unlock(ltable.header_lock);
|
||||
printf("Stage 1: Writing %d keys\n", NUM_ENTRIES);
|
||||
|
||||
struct timeval start_tv, stop_tv, ti_st, ti_end;
|
||||
|
@ -102,7 +101,6 @@ void insertProbeIter(size_t NUM_ENTRIES)
|
|||
printf("datasize: %lld\n", (long long)datasize);
|
||||
//sleep(20);
|
||||
|
||||
Tcommit(xid);
|
||||
xid = Tbegin();
|
||||
|
||||
|
||||
|
|
|
@ -54,13 +54,13 @@ void insertProbeIter(size_t NUM_ENTRIES)
|
|||
recordid table_root = ltable.allocTable(xid);
|
||||
|
||||
Tcommit(xid);
|
||||
|
||||
//xid = Tbegin();
|
||||
|
||||
writelock(ltable.header_lock,0);
|
||||
int lindex = mscheduler.addlogtable(<able);
|
||||
ltable.setMergeData(mscheduler.getMergeData(lindex));
|
||||
|
||||
|
||||
mscheduler.startlogtable(lindex);
|
||||
unlock(ltable.header_lock);
|
||||
|
||||
printf("Stage 1: Writing %d keys\n", NUM_ENTRIES);
|
||||
|
||||
|
|
|
@ -112,13 +112,12 @@ void insertProbeIter(size_t NUM_ENTRIES)
|
|||
recordid table_root = ltable.allocTable(xid);
|
||||
|
||||
Tcommit(xid);
|
||||
|
||||
xid = Tbegin();
|
||||
|
||||
writelock(ltable.header_lock,0);
|
||||
int lindex = mscheduler.addlogtable(<able);
|
||||
ltable.setMergeData(mscheduler.getMergeData(lindex));
|
||||
|
||||
|
||||
mscheduler.startlogtable(lindex);
|
||||
unlock(ltable.header_lock);
|
||||
|
||||
printf("Stage 1: Writing %d keys\n", NUM_ENTRIES);
|
||||
|
||||
|
@ -197,7 +196,6 @@ void insertProbeIter(size_t NUM_ENTRIES)
|
|||
printf("\nTREE STRUCTURE\n");
|
||||
printf("datasize: %lld\n", datasize);
|
||||
|
||||
Tcommit(xid);
|
||||
xid = Tbegin();
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue