From 2f7da416636b6081a2559087183c398536a58c1b Mon Sep 17 00:00:00 2001 From: Sears Russell Date: Fri, 1 Jun 2007 22:20:25 +0000 Subject: [PATCH] Whitespace; restoring lost call to checkRid --- src/lladd/page/fixed.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/lladd/page/fixed.c b/src/lladd/page/fixed.c index d37bd2c..f0d9ce5 100644 --- a/src/lladd/page/fixed.c +++ b/src/lladd/page/fixed.c @@ -66,16 +66,17 @@ static void checkRid(Page * page, recordid rid) { int recCount = *recordcount_ptr(page); assert(recCount > rid.slot); } else { - if(!checkRidWarnedAboutUninitializedKludge) { - checkRidWarnedAboutUninitializedKludge = 1; - printf("KLUDGE detected in checkRid. Fix it ASAP\n"); - } + if(!checkRidWarnedAboutUninitializedKludge) { + checkRidWarnedAboutUninitializedKludge = 1; + printf("KLUDGE detected in checkRid. Fix it ASAP\n"); + } fixedPageInitialize(page, rid.size, recordsPerPage(rid.size)); } } void fixedReadUnlocked(Page * page, recordid rid, byte * buf) { assertlocked(page->rwlatch); + checkRid(page, rid); if(!memcpy(buf, fixed_record_ptr(page, rid.slot), rid.size)) { perror("memcpy"); abort();