mirror of
https://github.com/postgres/postgres.git
synced 2025-10-13 18:28:01 +03:00
Remove unused nbtree array advancement variable.
Remove a variable that is no longer in use following commit 9a2e2a28
.
It's not immediately clear why there were no compiler warnings about
this oversight.
Author: Peter Geoghegan <pg@bowt.ie>
Backpatch-through: 18
This commit is contained in:
@@ -1449,7 +1449,6 @@ _bt_advance_array_keys(IndexScanDesc scan, BTReadPageState *pstate,
|
|||||||
BTArrayKeyInfo *array = NULL;
|
BTArrayKeyInfo *array = NULL;
|
||||||
Datum tupdatum;
|
Datum tupdatum;
|
||||||
bool required = false,
|
bool required = false,
|
||||||
required_opposite_direction_only = false,
|
|
||||||
tupnull;
|
tupnull;
|
||||||
int32 result;
|
int32 result;
|
||||||
int set_elem = 0;
|
int set_elem = 0;
|
||||||
@@ -1473,8 +1472,7 @@ _bt_advance_array_keys(IndexScanDesc scan, BTReadPageState *pstate,
|
|||||||
(cur->sk_flags & (SK_BT_REQBKWD))) ||
|
(cur->sk_flags & (SK_BT_REQBKWD))) ||
|
||||||
(ScanDirectionIsBackward(dir) &&
|
(ScanDirectionIsBackward(dir) &&
|
||||||
(cur->sk_flags & (SK_BT_REQFWD)))))
|
(cur->sk_flags & (SK_BT_REQFWD)))))
|
||||||
has_required_opposite_direction_only =
|
has_required_opposite_direction_only = true;
|
||||||
required_opposite_direction_only = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Optimization: skip over known-satisfied scan keys */
|
/* Optimization: skip over known-satisfied scan keys */
|
||||||
|
Reference in New Issue
Block a user