Whitespace; restoring lost call to checkRid
This commit is contained in:
parent
5e1445777f
commit
2f7da41663
1 changed files with 5 additions and 4 deletions
|
@ -66,16 +66,17 @@ static void checkRid(Page * page, recordid rid) {
|
||||||
int recCount = *recordcount_ptr(page);
|
int recCount = *recordcount_ptr(page);
|
||||||
assert(recCount > rid.slot);
|
assert(recCount > rid.slot);
|
||||||
} else {
|
} else {
|
||||||
if(!checkRidWarnedAboutUninitializedKludge) {
|
if(!checkRidWarnedAboutUninitializedKludge) {
|
||||||
checkRidWarnedAboutUninitializedKludge = 1;
|
checkRidWarnedAboutUninitializedKludge = 1;
|
||||||
printf("KLUDGE detected in checkRid. Fix it ASAP\n");
|
printf("KLUDGE detected in checkRid. Fix it ASAP\n");
|
||||||
}
|
}
|
||||||
fixedPageInitialize(page, rid.size, recordsPerPage(rid.size));
|
fixedPageInitialize(page, rid.size, recordsPerPage(rid.size));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void fixedReadUnlocked(Page * page, recordid rid, byte * buf) {
|
void fixedReadUnlocked(Page * page, recordid rid, byte * buf) {
|
||||||
assertlocked(page->rwlatch);
|
assertlocked(page->rwlatch);
|
||||||
|
checkRid(page, rid);
|
||||||
if(!memcpy(buf, fixed_record_ptr(page, rid.slot), rid.size)) {
|
if(!memcpy(buf, fixed_record_ptr(page, rid.slot), rid.size)) {
|
||||||
perror("memcpy");
|
perror("memcpy");
|
||||||
abort();
|
abort();
|
||||||
|
|
Loading…
Reference in a new issue