Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
4c45832c
Commit
4c45832c
authored
Jun 07, 1999
by
Vadim B. Mikheev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Concurrency... Highest one...
DO NOT EVEN TRY TO DO PageGetMaxOffsetNumber BEFORE LockBuffer! -:)
parent
8864ee0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
src/backend/access/nbtree/nbtree.c
src/backend/access/nbtree/nbtree.c
+8
-5
No files found.
src/backend/access/nbtree/nbtree.c
View file @
4c45832c
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtree.c,v 1.4
0 1999/05/25 22:04:13 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtree.c,v 1.4
1 1999/06/07 15:14:54 vadim
Exp $
*
* NOTES
* This file contains only the public interface routines.
...
...
@@ -618,16 +618,19 @@ _bt_restscan(IndexScanDesc scan)
Relation
rel
=
scan
->
relation
;
BTScanOpaque
so
=
(
BTScanOpaque
)
scan
->
opaque
;
Buffer
buf
=
so
->
btso_curbuf
;
Page
page
=
BufferGetPage
(
buf
)
;
Page
page
;
ItemPointer
current
=
&
(
scan
->
currentItemData
);
OffsetNumber
offnum
=
ItemPointerGetOffsetNumber
(
current
),
maxoff
=
PageGetMaxOffsetNumber
(
page
)
;
BTPageOpaque
opaque
=
(
BTPageOpaque
)
PageGetSpecialPointer
(
page
)
;
maxoff
;
BTPageOpaque
opaque
;
ItemPointerData
target
=
so
->
curHeapIptr
;
BTItem
item
;
BlockNumber
blkno
;
LockBuffer
(
buf
,
BT_READ
);
LockBuffer
(
buf
,
BT_READ
);
/* lock buffer first! */
page
=
BufferGetPage
(
buf
);
maxoff
=
PageGetMaxOffsetNumber
(
page
);
opaque
=
(
BTPageOpaque
)
PageGetSpecialPointer
(
page
);
/*
* We use this as flag when first index tuple on page is deleted but
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment