Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
c3c75fcd
Commit
c3c75fcd
authored
10 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
pg_upgrade: adjust C comments
parent
aae7af3d
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
contrib/pg_upgrade/controldata.c
+25
-25
25 additions, 25 deletions
contrib/pg_upgrade/controldata.c
with
25 additions
and
25 deletions
contrib/pg_upgrade/controldata.c
+
25
−
25
View file @
c3c75fcd
...
...
@@ -145,7 +145,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: pg_resetxlog problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
cluster
->
controldata
.
ctrl_ver
=
str2uint
(
p
);
}
else
if
((
p
=
strstr
(
bufin
,
"Catalog version number:"
))
!=
NULL
)
...
...
@@ -155,7 +155,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
cluster
->
controldata
.
cat_ver
=
str2uint
(
p
);
}
else
if
((
p
=
strstr
(
bufin
,
"First log segment after reset:"
))
!=
NULL
)
...
...
@@ -182,7 +182,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
logid
=
str2uint
(
p
);
got_log_id
=
true
;
}
...
...
@@ -193,7 +193,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
segno
=
str2uint
(
p
);
got_log_seg
=
true
;
}
...
...
@@ -204,7 +204,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
cluster
->
controldata
.
chkpnt_tli
=
str2uint
(
p
);
got_tli
=
true
;
}
...
...
@@ -215,14 +215,14 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
cluster
->
controldata
.
chkpnt_nxtepoch
=
str2uint
(
p
);
p
=
strchr
(
p
,
'/'
);
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
'/' char */
p
++
;
/* remov
e
'/' char */
cluster
->
controldata
.
chkpnt_nxtxid
=
str2uint
(
p
);
got_xid
=
true
;
}
...
...
@@ -233,7 +233,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
cluster
->
controldata
.
chkpnt_nxtoid
=
str2uint
(
p
);
got_oid
=
true
;
}
...
...
@@ -244,7 +244,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
cluster
->
controldata
.
chkpnt_nxtmulti
=
str2uint
(
p
);
got_multi
=
true
;
}
...
...
@@ -255,7 +255,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
cluster
->
controldata
.
chkpnt_oldstMulti
=
str2uint
(
p
);
got_oldestmulti
=
true
;
}
...
...
@@ -266,7 +266,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
cluster
->
controldata
.
chkpnt_nxtmxoff
=
str2uint
(
p
);
got_mxoff
=
true
;
}
...
...
@@ -277,7 +277,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
cluster
->
controldata
.
align
=
str2uint
(
p
);
got_align
=
true
;
}
...
...
@@ -288,7 +288,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
cluster
->
controldata
.
blocksz
=
str2uint
(
p
);
got_blocksz
=
true
;
}
...
...
@@ -299,7 +299,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
cluster
->
controldata
.
largesz
=
str2uint
(
p
);
got_largesz
=
true
;
}
...
...
@@ -310,7 +310,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
cluster
->
controldata
.
walsz
=
str2uint
(
p
);
got_walsz
=
true
;
}
...
...
@@ -321,7 +321,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
cluster
->
controldata
.
walseg
=
str2uint
(
p
);
got_walseg
=
true
;
}
...
...
@@ -332,7 +332,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
cluster
->
controldata
.
ident
=
str2uint
(
p
);
got_ident
=
true
;
}
...
...
@@ -343,7 +343,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
cluster
->
controldata
.
index
=
str2uint
(
p
);
got_index
=
true
;
}
...
...
@@ -354,7 +354,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
cluster
->
controldata
.
toast
=
str2uint
(
p
);
got_toast
=
true
;
}
...
...
@@ -365,7 +365,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
cluster
->
controldata
.
large_object
=
str2uint
(
p
);
got_large_object
=
true
;
}
...
...
@@ -376,7 +376,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
cluster
->
controldata
.
date_is_int
=
strstr
(
p
,
"64-bit integers"
)
!=
NULL
;
got_date_is_int
=
true
;
}
...
...
@@ -387,7 +387,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
/* used later for contrib check */
cluster
->
controldata
.
float8_pass_by_value
=
strstr
(
p
,
"by value"
)
!=
NULL
;
got_float8_pass_by_value
=
true
;
...
...
@@ -399,7 +399,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
/* used later for contrib check */
cluster
->
controldata
.
data_checksum_version
=
str2uint
(
p
);
got_data_checksum_version
=
true
;
...
...
@@ -412,7 +412,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
/* skip leading spaces and remove trailing newline */
p
+=
strspn
(
p
,
" "
);
if
(
strlen
(
p
)
>
0
&&
*
(
p
+
strlen
(
p
)
-
1
)
==
'\n'
)
...
...
@@ -427,7 +427,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
/* skip leading spaces and remove trailing newline */
p
+=
strspn
(
p
,
" "
);
if
(
strlen
(
p
)
>
0
&&
*
(
p
+
strlen
(
p
)
-
1
)
==
'\n'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment