File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -435,7 +435,6 @@ moc_debug(PG_FUNCTION_ARGS)
435
435
static bool
436
436
smoc_eq_impl (Smoc * moc_a , Smoc * moc_b )
437
437
{
438
- int32 entry_size = MOC_INTERVAL_SIZE ;
439
438
int32 moc_a_end = VARSIZE (moc_a ) - VARHDRSZ ;
440
439
int32 moc_b_end = VARSIZE (moc_b ) - VARHDRSZ ;
441
440
char * moc_a_base = MOC_BASE (moc_a );
@@ -447,14 +446,14 @@ smoc_eq_impl(Smoc* moc_a, Smoc* moc_b)
447
446
if (moc_a -> order != moc_b -> order || moc_a -> first != moc_b -> first || moc_a -> last != moc_b -> last || moc_a -> area != moc_b -> area )
448
447
return false;
449
448
450
- for (int j = moc_a -> data_begin ; j < moc_a_end ; j += entry_size ) // iterate over both in parallel
449
+ for (int j = moc_a -> data_begin ; j < moc_a_end ; j += MOC_INTERVAL_SIZE ) // iterate over both in parallel
451
450
{
452
451
moc_interval * x ;
453
452
moc_interval * y ;
454
453
// page bumps
455
- int32 mod = (j + entry_size ) % PG_TOAST_PAGE_FRAGMENT ;
456
- if (mod > 0 && mod < entry_size )
457
- j += entry_size - mod ;
454
+ int32 mod = (j + MOC_INTERVAL_SIZE ) % PG_TOAST_PAGE_FRAGMENT ;
455
+ if (mod > 0 && mod < MOC_INTERVAL_SIZE )
456
+ j += MOC_INTERVAL_SIZE - mod ;
458
457
x = MOC_INTERVAL (moc_a_base , j );
459
458
y = MOC_INTERVAL (moc_b_base , j );
460
459
You can’t perform that action at this time.
0 commit comments