mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
Revoke bc5334d867
This commit is contained in:
@ -99,25 +99,6 @@ SetDataDir(const char *dir)
|
||||
DataDir = new;
|
||||
}
|
||||
|
||||
/*
|
||||
* Set recovery config directory, but make sure it's an absolute path. Use this,
|
||||
* never set RecoveryConfDir directly.
|
||||
*/
|
||||
void
|
||||
SetRecoveryConfDir(const char *dir)
|
||||
{
|
||||
char *new;
|
||||
|
||||
AssertArg(dir);
|
||||
|
||||
/* If presented path is relative, convert to absolute */
|
||||
new = make_absolute_path(dir);
|
||||
|
||||
if (RecoveryConfDir)
|
||||
free(RecoveryConfDir);
|
||||
RecoveryConfDir = new;
|
||||
}
|
||||
|
||||
/*
|
||||
* Change working directory to DataDir. Most of the postmaster and backend
|
||||
* code assumes that we are in DataDir so it can use relative paths to access
|
||||
|
Reference in New Issue
Block a user