Skip to content
Snippets Groups Projects
Commit 4af1e537 authored by Vadim B. Mikheev's avatar Vadim B. Mikheev
Browse files

Fix scan adjusting for marked index tuples.

parent 3047d778
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/Attic/nbtscan.c,v 1.12 1998/01/07 21:01:54 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/access/nbtree/Attic/nbtscan.c,v 1.13 1998/02/28 13:53:18 vadim Exp $
* *
* *
* NOTES * NOTES
...@@ -170,6 +170,9 @@ _bt_scandel(IndexScanDesc scan, int op, BlockNumber blkno, OffsetNumber offno) ...@@ -170,6 +170,9 @@ _bt_scandel(IndexScanDesc scan, int op, BlockNumber blkno, OffsetNumber offno)
tmp = *current; tmp = *current;
*current = scan->currentItemData; *current = scan->currentItemData;
scan->currentItemData = tmp; scan->currentItemData = tmp;
so->btso_curbuf = so->btso_mrkbuf;
so->btso_mrkbuf = buf;
buf = so->btso_curbuf;
switch (op) switch (op)
{ {
case BT_INSERT: case BT_INSERT:
...@@ -182,6 +185,7 @@ _bt_scandel(IndexScanDesc scan, int op, BlockNumber blkno, OffsetNumber offno) ...@@ -182,6 +185,7 @@ _bt_scandel(IndexScanDesc scan, int op, BlockNumber blkno, OffsetNumber offno)
elog(ERROR, "_bt_scandel: bad operation '%d'", op); elog(ERROR, "_bt_scandel: bad operation '%d'", op);
/* NOTREACHED */ /* NOTREACHED */
} }
so->btso_curbuf = so->btso_mrkbuf;
so->btso_mrkbuf = buf; so->btso_mrkbuf = buf;
tmp = *current; tmp = *current;
*current = scan->currentItemData; *current = scan->currentItemData;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment