Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit282861a

Browse files
committed
initdb didn't always remove temp file
1 parentf46c1f1 commit282861a

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

‎src/bin/initdb/initdb.sh

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#
2727
#
2828
# IDENTIFICATION
29-
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.90 2000/04/08 18:35:29 momjian Exp $
29+
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.91 2000/04/25 08:29:02 petere Exp $
3030
#
3131
#-------------------------------------------------------------------------
3232

@@ -476,10 +476,7 @@ then
476476
"$PGPATH"/postgres$BACKENDARGS template1<"$TEMPFILE"
477477
# Gotta remove that temp file before exiting on error.
478478
retval="$?"
479-
if ["$noclean"-eq 0 ]
480-
then
481-
rm -f"$TEMPFILE"|| exit_nicely
482-
fi
479+
rm -f"$TEMPFILE"|| exit_nicely
483480
["$retval"-ne 0 ]&& exit_nicely
484481
fi
485482

@@ -596,10 +593,7 @@ cat "$GLOBAL_DESCR" >> $TEMPFILE
596593

597594
cat$TEMPFILE \
598595
|"$PGPATH"/postgres$PGSQL_OPT template1> /dev/null|| exit_nicely
599-
if ["$noclean"-eq 0 ]
600-
then
601-
rm -f"$TEMPFILE"|| exit_nicely
602-
fi
596+
rm -f"$TEMPFILE"|| exit_nicely
603597

604598
echo"Vacuuming database."
605599
echo"VACUUM ANALYZE" \

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp