aboutsummaryrefslogtreecommitdiff
path: root/src/backend/storage/file/fd.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1998-04-05 21:04:50 +0000
committerBruce Momjian <bruce@momjian.us>1998-04-05 21:04:50 +0000
commit4b6fcc4459991fa65b1389c8e05e3e3b9a8bd35a (patch)
treed8af30288830fdfa8ecb2f0d5b500107c578f87f /src/backend/storage/file/fd.c
parent9e45687df5148b0c541c5c23a72b84b506e29b1b (diff)
downloadpostgresql-4b6fcc4459991fa65b1389c8e05e3e3b9a8bd35a.tar.gz
postgresql-4b6fcc4459991fa65b1389c8e05e3e3b9a8bd35a.zip
Remove GetDatabaseName/Path and use globals. Make consts later.
Diffstat (limited to 'src/backend/storage/file/fd.c')
-rw-r--r--src/backend/storage/file/fd.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/backend/storage/file/fd.c b/src/backend/storage/file/fd.c
index 9f48b222b2b..969a5e16694 100644
--- a/src/backend/storage/file/fd.c
+++ b/src/backend/storage/file/fd.c
@@ -6,7 +6,7 @@
* Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $Id: fd.c,v 1.30 1998/02/26 04:35:29 momjian Exp $
+ * $Id: fd.c,v 1.31 1998/04/05 21:04:27 momjian Exp $
*
* NOTES:
*
@@ -460,8 +460,6 @@ FreeVfd(File file)
* Open specified file name.
* Fill in absolute path fields if necessary.
*
- * Modify to use GetDatabasePath() rather than hardcoded paths.
- * - thomas 1997-11-02
*/
static char *
filepath(char *filename)
@@ -472,9 +470,9 @@ filepath(char *filename)
/* Not an absolute path name? Then fill in with database path... */
if (*filename != SEP_CHAR)
{
- len = strlen(GetDatabasePath()) + strlen(filename) + 2;
+ len = strlen(DatabasePath) + strlen(filename) + 2;
buf = (char *) palloc(len);
- sprintf(buf, "%s%c%s", GetDatabasePath(), SEP_CHAR, filename);
+ sprintf(buf, "%s%c%s", DatabasePath, SEP_CHAR, filename);
}
else
{