aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/dbcommands.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2004-08-30 02:54:42 +0000
committerBruce Momjian <bruce@momjian.us>2004-08-30 02:54:42 +0000
commit15d3f9f6b7849a70281f151f0def7a6d335767d7 (patch)
tree98d285e17c671a56e484e98916703280e1947a78 /src/backend/commands/dbcommands.c
parent166300f318f5b4795c0f7679144a1c23c0118163 (diff)
downloadpostgresql-15d3f9f6b7849a70281f151f0def7a6d335767d7.tar.gz
postgresql-15d3f9f6b7849a70281f151f0def7a6d335767d7.zip
Another pgindent run with lib typedefs added.
Diffstat (limited to 'src/backend/commands/dbcommands.c')
-rw-r--r--src/backend/commands/dbcommands.c20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/backend/commands/dbcommands.c b/src/backend/commands/dbcommands.c
index aa95d97d0e2..38696cf7070 100644
--- a/src/backend/commands/dbcommands.c
+++ b/src/backend/commands/dbcommands.c
@@ -9,7 +9,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/commands/dbcommands.c,v 1.142 2004/08/29 21:08:47 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/commands/dbcommands.c,v 1.143 2004/08/30 02:54:38 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -1117,24 +1117,27 @@ dbase_redo(XLogRecPtr lsn, XLogRecord *record)
xl_dbase_create_rec *xlrec = (xl_dbase_create_rec *) XLogRecGetData(record);
char *dst_path = xlrec->src_path + strlen(xlrec->src_path) + 1;
struct stat st;
+
#ifndef WIN32
char buf[2 * MAXPGPATH + 100];
#endif
/*
- * Our theory for replaying a CREATE is to forcibly drop the target
- * subdirectory if present, then re-copy the source data. This
- * may be more work than needed, but it is simple to implement.
+ * Our theory for replaying a CREATE is to forcibly drop the
+ * target subdirectory if present, then re-copy the source data.
+ * This may be more work than needed, but it is simple to
+ * implement.
*/
if (stat(dst_path, &st) == 0 && S_ISDIR(st.st_mode))
{
if (!rmtree(dst_path, true))
ereport(WARNING,
- (errmsg("could not remove database directory \"%s\"",
- dst_path)));
+ (errmsg("could not remove database directory \"%s\"",
+ dst_path)));
}
#ifndef WIN32
+
/*
* Copy this subdirectory to the new location
*
@@ -1164,7 +1167,10 @@ dbase_redo(XLogRecPtr lsn, XLogRecord *record)
{
xl_dbase_drop_rec *xlrec = (xl_dbase_drop_rec *) XLogRecGetData(record);
- /* Drop pages for this database that are in the shared buffer cache */
+ /*
+ * Drop pages for this database that are in the shared buffer
+ * cache
+ */
DropBuffers(xlrec->db_id);
if (!rmtree(xlrec->dir_path, true))