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
17d8beb4
Commit
17d8beb4
authored
Apr 05, 2018
by
Teodor Sigaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused vars and mark assert-only vars
Kyotaro HORIGUCHI
parent
a02d51c0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
5 deletions
+1
-5
src/backend/access/nbtree/nbtpage.c
src/backend/access/nbtree/nbtpage.c
+1
-3
src/backend/access/nbtree/nbtree.c
src/backend/access/nbtree/nbtree.c
+0
-2
No files found.
src/backend/access/nbtree/nbtpage.c
View file @
17d8beb4
...
@@ -85,7 +85,7 @@ void
...
@@ -85,7 +85,7 @@ void
_bt_upgrademetapage
(
Page
page
)
_bt_upgrademetapage
(
Page
page
)
{
{
BTMetaPageData
*
metad
;
BTMetaPageData
*
metad
;
BTPageOpaque
metaopaque
;
BTPageOpaque
metaopaque
PG_USED_FOR_ASSERTS_ONLY
;
metad
=
BTPageGetMeta
(
page
);
metad
=
BTPageGetMeta
(
page
);
metaopaque
=
(
BTPageOpaque
)
PageGetSpecialPointer
(
page
);
metaopaque
=
(
BTPageOpaque
)
PageGetSpecialPointer
(
page
);
...
@@ -118,7 +118,6 @@ _bt_update_meta_cleanup_info(Relation rel, TransactionId oldestBtpoXact,
...
@@ -118,7 +118,6 @@ _bt_update_meta_cleanup_info(Relation rel, TransactionId oldestBtpoXact,
{
{
Buffer
metabuf
;
Buffer
metabuf
;
Page
metapg
;
Page
metapg
;
BTPageOpaque
metaopaque
;
BTMetaPageData
*
metad
;
BTMetaPageData
*
metad
;
bool
needsRewrite
=
false
;
bool
needsRewrite
=
false
;
XLogRecPtr
recptr
;
XLogRecPtr
recptr
;
...
@@ -126,7 +125,6 @@ _bt_update_meta_cleanup_info(Relation rel, TransactionId oldestBtpoXact,
...
@@ -126,7 +125,6 @@ _bt_update_meta_cleanup_info(Relation rel, TransactionId oldestBtpoXact,
/* read the metapage and check if it needs rewrite */
/* read the metapage and check if it needs rewrite */
metabuf
=
_bt_getbuf
(
rel
,
BTREE_METAPAGE
,
BT_READ
);
metabuf
=
_bt_getbuf
(
rel
,
BTREE_METAPAGE
,
BT_READ
);
metapg
=
BufferGetPage
(
metabuf
);
metapg
=
BufferGetPage
(
metabuf
);
metaopaque
=
(
BTPageOpaque
)
PageGetSpecialPointer
(
metapg
);
metad
=
BTPageGetMeta
(
metapg
);
metad
=
BTPageGetMeta
(
metapg
);
/* outdated version of metapage always needs rewrite */
/* outdated version of metapage always needs rewrite */
...
...
src/backend/access/nbtree/nbtree.c
View file @
17d8beb4
...
@@ -786,13 +786,11 @@ _bt_vacuum_needs_cleanup(IndexVacuumInfo *info)
...
@@ -786,13 +786,11 @@ _bt_vacuum_needs_cleanup(IndexVacuumInfo *info)
{
{
Buffer
metabuf
;
Buffer
metabuf
;
Page
metapg
;
Page
metapg
;
BTPageOpaque
metaopaque
;
BTMetaPageData
*
metad
;
BTMetaPageData
*
metad
;
bool
result
=
false
;
bool
result
=
false
;
metabuf
=
_bt_getbuf
(
info
->
index
,
BTREE_METAPAGE
,
BT_READ
);
metabuf
=
_bt_getbuf
(
info
->
index
,
BTREE_METAPAGE
,
BT_READ
);
metapg
=
BufferGetPage
(
metabuf
);
metapg
=
BufferGetPage
(
metabuf
);
metaopaque
=
(
BTPageOpaque
)
PageGetSpecialPointer
(
metapg
);
metad
=
BTPageGetMeta
(
metapg
);
metad
=
BTPageGetMeta
(
metapg
);
if
(
metad
->
btm_version
<
BTREE_VERSION
)
if
(
metad
->
btm_version
<
BTREE_VERSION
)
...
...
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