Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita63255b

Browse files
committed
rename [pre]consistentFalse = true
1 parent1608500 commita63255b

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

‎rumget.c

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1530,7 +1530,7 @@ scanGetItemFast(IndexScanDesc scan, ItemPointer advancePast,
15301530
{
15311531
RumScanOpaqueso= (RumScanOpaque)scan->opaque;
15321532
inti,j,k;
1533-
boolpreConsistentFalse,consistentFalse;
1533+
boolpreConsistentResult,consistentResult;
15341534

15351535
if (so->entriesIncrIndex >=0)
15361536
{
@@ -1544,7 +1544,7 @@ scanGetItemFast(IndexScanDesc scan, ItemPointer advancePast,
15441544
* Our entries is ordered by descending of item pointers.
15451545
* The first goal is to find border where preConsistent becomes false.
15461546
*/
1547-
preConsistentFalse=false;
1547+
preConsistentResult=true;
15481548
j=0;
15491549
k=0;
15501550
for (i=0;i<so->totalentries;i++)
@@ -1557,11 +1557,8 @@ scanGetItemFast(IndexScanDesc scan, ItemPointer advancePast,
15571557
for (;j<i;j++)
15581558
so->sortedEntries[j]->preValue= false;
15591559

1560-
if (!preConsistentCheck(so))
1561-
{
1562-
preConsistentFalse= true;
1560+
if ((preConsistentResult=preConsistentCheck(so))== false)
15631561
break;
1564-
}
15651562
}
15661563
}
15671564

@@ -1572,14 +1569,14 @@ scanGetItemFast(IndexScanDesc scan, ItemPointer advancePast,
15721569
if (so->sortedEntries[i-1]->isFinished== TRUE)
15731570
return false;
15741571

1575-
if (preConsistentFalse)
1572+
if (preConsistentResult== false)
15761573
{
15771574
entryShift(i,so, true);
15781575
continue;
15791576
}
15801577

15811578
/* Call consistent method */
1582-
consistentFalse=false;
1579+
consistentResult=true;
15831580
for (i=0;i<so->nkeys;i++)
15841581
{
15851582
RumScanKeykey=so->keys+i;
@@ -1607,13 +1604,13 @@ scanGetItemFast(IndexScanDesc scan, ItemPointer advancePast,
16071604
}
16081605
if (!callConsistentFn(&so->rumstate,key))
16091606
{
1610-
consistentFalse=true;
1607+
consistentResult=false;
16111608
entryShift(k,so, false);
16121609
continue;
16131610
}
16141611
}
16151612

1616-
if (consistentFalse)
1613+
if (consistentResult== false)
16171614
continue;
16181615

16191616
/* Calculate recheck from each key */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp