aboutsummaryrefslogtreecommitdiff
path: root/src/backend/storage/file/copydir.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2010-07-06 19:19:02 +0000
committerBruce Momjian <bruce@momjian.us>2010-07-06 19:19:02 +0000
commit239d769e7e05e0a5ef3bd6828e93e22ef3962780 (patch)
tree9660987f1372651b78fb82023739728f2f962a6e /src/backend/storage/file/copydir.c
parent52783b212c7c0ef5ab2ee6bda17c8db0ed13d4ab (diff)
downloadpostgresql-239d769e7e05e0a5ef3bd6828e93e22ef3962780.tar.gz
postgresql-239d769e7e05e0a5ef3bd6828e93e22ef3962780.zip
pgindent run for 9.0, second run
Diffstat (limited to 'src/backend/storage/file/copydir.c')
-rw-r--r--src/backend/storage/file/copydir.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/backend/storage/file/copydir.c b/src/backend/storage/file/copydir.c
index 6bcbb21721c..fe44180c937 100644
--- a/src/backend/storage/file/copydir.c
+++ b/src/backend/storage/file/copydir.c
@@ -11,7 +11,7 @@
* as a service.
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/storage/file/copydir.c,v 1.1 2010/07/02 17:03:30 rhaas Exp $
+ * $PostgreSQL: pgsql/src/backend/storage/file/copydir.c,v 1.2 2010/07/06 19:18:57 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -70,8 +70,8 @@ copydir(char *fromdir, char *todir, bool recurse)
{
struct stat fst;
- /* If we got a cancel signal during the copy of the directory, quit */
- CHECK_FOR_INTERRUPTS();
+ /* If we got a cancel signal during the copy of the directory, quit */
+ CHECK_FOR_INTERRUPTS();
if (strcmp(xlde->d_name, ".") == 0 ||
strcmp(xlde->d_name, "..") == 0)
@@ -176,8 +176,8 @@ copy_file(char *fromfile, char *tofile)
*/
for (offset = 0;; offset += nbytes)
{
- /* If we got a cancel signal during the copy of the file, quit */
- CHECK_FOR_INTERRUPTS();
+ /* If we got a cancel signal during the copy of the file, quit */
+ CHECK_FOR_INTERRUPTS();
nbytes = read(srcfd, buffer, COPY_BUF_SIZE);
if (nbytes < 0)
@@ -226,12 +226,12 @@ static void
fsync_fname(char *fname, bool isdir)
{
int fd;
- int returncode;
+ int returncode;
/*
- * Some OSs require directories to be opened read-only whereas
- * other systems don't allow us to fsync files opened read-only; so
- * we need both cases here
+ * Some OSs require directories to be opened read-only whereas other
+ * systems don't allow us to fsync files opened read-only; so we need both
+ * cases here
*/
if (!isdir)
fd = BasicOpenFile(fname,
@@ -243,8 +243,8 @@ fsync_fname(char *fname, bool isdir)
S_IRUSR | S_IWUSR);
/*
- * Some OSs don't allow us to open directories at all
- * (Windows returns EACCES)
+ * Some OSs don't allow us to open directories at all (Windows returns
+ * EACCES)
*/
if (fd < 0 && isdir && (errno == EISDIR || errno == EACCES))
return;
@@ -255,7 +255,7 @@ fsync_fname(char *fname, bool isdir)
errmsg("could not open file \"%s\": %m", fname)));
returncode = pg_fsync(fd);
-
+
/* Some OSs don't allow us to fsync directories at all */
if (returncode != 0 && isdir && errno == EBADF)
{