mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-23 07:06:30 +00:00
If --force-rewind is used in conjunction with "repmgr node rejoin", any replication slots present on the source node will be copied too; it's essential to remove these to prevent stale slots being extant when the node starts up. We do this at file system level *before* the server starts to minimize the risk of any problems. Addresses GitHub #334
31 lines
1.0 KiB
C
31 lines
1.0 KiB
C
/*
|
|
* dirutil.h
|
|
* Copyright (c) 2ndQuadrant, 2010-2017
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef _DIRUTIL_H_
|
|
#define _DIRUTIL_H_
|
|
|
|
extern int mkdir_p(char *path, mode_t omode);
|
|
extern bool set_dir_permissions(char *path);
|
|
|
|
extern int check_dir(char *path);
|
|
extern bool create_dir(char *path);
|
|
extern bool is_pg_dir(char *path);
|
|
extern bool create_pg_dir(char *path, bool force);
|
|
extern int rmdir_recursive(char *path);
|
|
#endif
|