unit test was setting page lsns to invalid values, breaking truncation
This commit is contained in:
parent
ff5ef752f3
commit
4afe95cda7
1 changed files with 5 additions and 2 deletions
|
@ -141,8 +141,11 @@ void * workerThreadWriting(void * q) {
|
||||||
writelock(p->rwlatch,0);
|
writelock(p->rwlatch,0);
|
||||||
/* sched_yield(); */
|
/* sched_yield(); */
|
||||||
assert(stasis_record_length_read(xid,p,rids[i]) == sizeof(int));
|
assert(stasis_record_length_read(xid,p,rids[i]) == sizeof(int));
|
||||||
stasis_record_write(1, p, p->LSN+1, rids[i], (byte*)&val);
|
lsn_t lsn = stasis_page_lsn_read(p);
|
||||||
stasis_page_lsn_write(1,p,p->LSN+1);
|
assert(lsn);
|
||||||
|
p->LSN --; // XXX HACK -- Sooner or later this will break...
|
||||||
|
stasis_record_write(1, p, lsn, rids[i], (byte*)&val);
|
||||||
|
stasis_page_lsn_write(1,p,lsn);
|
||||||
unlock(p->rwlatch);
|
unlock(p->rwlatch);
|
||||||
|
|
||||||
assert(p->id == rids[i].page);
|
assert(p->id == rids[i].page);
|
||||||
|
|
Loading…
Reference in a new issue