mirror of
https://github.com/postgres/postgres.git
synced 2025-09-09 13:09:39 +03:00
Remove some more "snapshot too old" vestiges.
Commit f691f5b8
removed the logic, but left behind some now-useless
Snapshot arguments to various AM-internal functions, and missed a couple
of comments.
Reported-by: Peter Geoghegan <pg@bowt.ie>
Discussion: https://postgr.es/m/CAH2-Wznj9qSNXZ1P1uWTUD_FeaTezbUazb416EPwi4Qr_jR_6A%40mail.gmail.com
This commit is contained in:
@@ -815,7 +815,7 @@ spgTestLeafTuple(SpGistScanOpaque so,
|
||||
*/
|
||||
static void
|
||||
spgWalk(Relation index, SpGistScanOpaque so, bool scanWholeIndex,
|
||||
storeRes_func storeRes, Snapshot snapshot)
|
||||
storeRes_func storeRes)
|
||||
{
|
||||
Buffer buffer = InvalidBuffer;
|
||||
bool reportedSome = false;
|
||||
@@ -949,7 +949,7 @@ spggetbitmap(IndexScanDesc scan, TIDBitmap *tbm)
|
||||
so->tbm = tbm;
|
||||
so->ntids = 0;
|
||||
|
||||
spgWalk(scan->indexRelation, so, true, storeBitmap, scan->xs_snapshot);
|
||||
spgWalk(scan->indexRelation, so, true, storeBitmap);
|
||||
|
||||
return so->ntids;
|
||||
}
|
||||
@@ -1070,8 +1070,7 @@ spggettuple(IndexScanDesc scan, ScanDirection dir)
|
||||
}
|
||||
so->iPtr = so->nPtrs = 0;
|
||||
|
||||
spgWalk(scan->indexRelation, so, false, storeGettuple,
|
||||
scan->xs_snapshot);
|
||||
spgWalk(scan->indexRelation, so, false, storeGettuple);
|
||||
|
||||
if (so->nPtrs == 0)
|
||||
break; /* must have completed scan */
|
||||
|
Reference in New Issue
Block a user