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

Commitcfab4f6

Browse files
committed
Use SEP_CHAR consistently in forming XLOG pathnames.
1 parent7ebbf20 commitcfab4f6

File tree

1 file changed

+4
-3
lines changed
  • src/backend/access/transam

1 file changed

+4
-3
lines changed

‎src/backend/access/transam/xlog.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.57 2001/03/13 20:32:37 tgl Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.58 2001/03/14 20:23:04 tgl Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -1778,8 +1778,9 @@ void
17781778
XLOGPathInit(void)
17791779
{
17801780
/* Init XLOG file paths */
1781-
snprintf(XLogDir,MAXPGPATH,"%s/pg_xlog",DataDir);
1782-
snprintf(ControlFilePath,MAXPGPATH,"%s/global/pg_control",DataDir);
1781+
snprintf(XLogDir,MAXPGPATH,"%s%cpg_xlog",DataDir,SEP_CHAR);
1782+
snprintf(ControlFilePath,MAXPGPATH,"%s%cglobal%cpg_control",
1783+
DataDir,SEP_CHAR,SEP_CHAR);
17831784
}
17841785

17851786
staticvoid

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp