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
a84c30dd
Commit
a84c30dd
authored
Dec 04, 2012
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
In initdb.c, move auth warning code into main() from secondary function.
parent
c47d261c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
src/bin/initdb/initdb.c
src/bin/initdb/initdb.c
+8
-8
No files found.
src/bin/initdb/initdb.c
View file @
a84c30dd
...
...
@@ -3411,14 +3411,6 @@ initialize_data_directory(void)
make_template0
();
make_postgres
();
if
(
do_sync
)
perform_fsync
();
else
printf
(
_
(
"
\n
Sync to disk skipped.
\n
The data directory might become corrupt if the operating system crashes.
\n
"
));
if
(
authwarning
!=
NULL
)
fprintf
(
stderr
,
"%s"
,
authwarning
);
}
...
...
@@ -3647,6 +3639,14 @@ main(int argc, char *argv[])
initialize_data_directory
();
if
(
do_sync
)
perform_fsync
();
else
printf
(
_
(
"
\n
Sync to disk skipped.
\n
The data directory might become corrupt if the operating system crashes.
\n
"
));
if
(
authwarning
!=
NULL
)
fprintf
(
stderr
,
"%s"
,
authwarning
);
/* Get directory specification used to start this executable */
strlcpy
(
bin_dir
,
argv
[
0
],
sizeof
(
bin_dir
));
get_parent_directory
(
bin_dir
);
...
...
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