Skip to content

Commit 4ebd3ff

Browse files
Changed according to Vlad Khorsun suggestion
1 parent 5990654 commit 4ebd3ff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/jrd/vio.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7330,10 +7330,8 @@ void VIO_update_in_place(thread_db* tdbb,
73307330
{
73317331
temp2 = *org_rpb;
73327332
temp2.rpb_record = gc_rec = relation->getGCRecord(tdbb);
7333-
temp2.rpb_page = org_rpb->rpb_b_page;
7334-
temp2.rpb_line = org_rpb->rpb_b_line;
73357333

7336-
if (!DPM_fetch(tdbb, &temp2, LCK_read))
7334+
if (!DPM_fetch_back(tdbb, &temp2, LCK_read, -1))
73377335
BUGCHECK(291); // msg 291 cannot find record back version
73387336

73397337
VIO_data(tdbb, &temp2, relation->rel_pool);
@@ -7343,11 +7341,13 @@ void VIO_update_in_place(thread_db* tdbb,
73437341
if (temp2.rpb_prior)
73447342
temp2.rpb_flags |= rpb_delta;
73457343

7346-
temp2.rpb_number = org_rpb->rpb_number;
73477344
DPM_store(tdbb, &temp2, *stack, DPM_secondary);
73487345

73497346
const USHORT pageSpaceID = temp2.getWindow(tdbb).win_page.getPageSpaceID();
73507347
stack->push(PageNumber(pageSpaceID, temp2.rpb_page));
7348+
7349+
if (!DPM_get(tdbb, org_rpb, LCK_write))
7350+
BUGCHECK(186); // msg 186 record disappeared
73517351
}
73527352

73537353
if (prior)

0 commit comments

Comments
 (0)