mirror of
https://github.com/postgres/postgres.git
synced 2025-10-27 00:12:01 +03:00
pgindent run for 9.0
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/storage/smgr/md.c,v 1.150 2010/01/02 16:57:52 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/storage/smgr/md.c,v 1.151 2010/02/26 02:01:01 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -161,7 +161,7 @@ static void register_dirty_segment(SMgrRelation reln, ForkNumber forknum,
|
||||
static void register_unlink(RelFileNode rnode);
|
||||
static MdfdVec *_fdvec_alloc(void);
|
||||
static char *_mdfd_segpath(SMgrRelation reln, ForkNumber forknum,
|
||||
BlockNumber segno);
|
||||
BlockNumber segno);
|
||||
static MdfdVec *_mdfd_openseg(SMgrRelation reln, ForkNumber forkno,
|
||||
BlockNumber segno, int oflags);
|
||||
static MdfdVec *_mdfd_getseg(SMgrRelation reln, ForkNumber forkno,
|
||||
@@ -392,7 +392,7 @@ mdunlink(RelFileNode rnode, ForkNumber forkNum, bool isRedo)
|
||||
if (errno != ENOENT)
|
||||
ereport(WARNING,
|
||||
(errcode_for_file_access(),
|
||||
errmsg("could not remove file \"%s\": %m", segpath)));
|
||||
errmsg("could not remove file \"%s\": %m", segpath)));
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -1080,12 +1080,12 @@ mdsync(void)
|
||||
failures > 0)
|
||||
ereport(ERROR,
|
||||
(errcode_for_file_access(),
|
||||
errmsg("could not fsync file \"%s\": %m", path)));
|
||||
errmsg("could not fsync file \"%s\": %m", path)));
|
||||
else
|
||||
ereport(DEBUG1,
|
||||
(errcode_for_file_access(),
|
||||
errmsg("could not fsync file \"%s\" but retrying: %m",
|
||||
path)));
|
||||
errmsg("could not fsync file \"%s\" but retrying: %m",
|
||||
path)));
|
||||
pfree(path);
|
||||
|
||||
/*
|
||||
@@ -1465,8 +1465,8 @@ _fdvec_alloc(void)
|
||||
static char *
|
||||
_mdfd_segpath(SMgrRelation reln, ForkNumber forknum, BlockNumber segno)
|
||||
{
|
||||
char *path,
|
||||
*fullpath;
|
||||
char *path,
|
||||
*fullpath;
|
||||
|
||||
path = relpath(reln->smgr_rnode, forknum);
|
||||
|
||||
@@ -1583,9 +1583,9 @@ _mdfd_getseg(SMgrRelation reln, ForkNumber forknum, BlockNumber blkno,
|
||||
return NULL;
|
||||
ereport(ERROR,
|
||||
(errcode_for_file_access(),
|
||||
errmsg("could not open file \"%s\" (target block %u): %m",
|
||||
_mdfd_segpath(reln, forknum, nextsegno),
|
||||
blkno)));
|
||||
errmsg("could not open file \"%s\" (target block %u): %m",
|
||||
_mdfd_segpath(reln, forknum, nextsegno),
|
||||
blkno)));
|
||||
}
|
||||
}
|
||||
v = v->mdfd_chain;
|
||||
|
||||
Reference in New Issue
Block a user